Skip to content

[Bug] hub fails to fetch auth token #408

@Ben281211

Description

@Ben281211

Pre-submission checklist

  • I checked that no other Bug Report describing my problem exists.
  • I am running the latest stable or prerelease firmware.
  • My board is on the list of maintained boards.
  • I accept that this issue may be closed if any of the above are found to be untrue.

Board

Wemos-D1-Mini-ESP32

Firmware version

1.4.0

Flashing method

I used the web flash tool

Describe what happened as precisely as possible.

I was turning on my shock collar, made sure it worked but it didnt. I then connected it to my PC (the hub) and opened the serial with Putty. there was some error I dont remember and I couldnt figure out how to fix it so I just factory reset it and tried to set it up again but I wass unable to pair to to my account, I got an internal Error on the Capative Portal and in putty it said this:
[W][HTTPRequestManager.cpp:465] _doGetStream(): Request timed out
[E][GatewayConnectionManager.cpp:98] Link(): Error while getting auth token: 3 200
[E][WiFiClientSecure.cpp:144] connect(): start_ssl_client: -1
[W][HTTPClient.cpp:1483] returnError(): error(-1): connection refused

also on my PC, the dashboard loads very very slowly and takes years to load while everything else is super fast but on other devices like my phone, the connection to the dashboard is quick and it also doesnt work when I connect the hub to my phones hotspot, I get a simlar error

Describe what you expected to happen instead.

I just expected it to connect without problems after reset.

In as much detail as possible, describe the exact steps you took to make the problem appear.

  • Power on hub
  • Connect to Wi-Fi (router or hotspot)
  • Open serial console
  • Observe captive portal start
  • ESP32 tries to fetch auth token
  • Errors appear:
    [HTTPRequestManager.cpp:465] Request timed out
    [GatewayConnectionManager.cpp:98] Error while getting auth token: 3 200
    [WiFiClientSecure.cpp:144] connect(): start_ssl_client: -1
    [HTTPClient.cpp:1483] returnError(): error(-1): connection refused
  • Captive portal stays, account linking fails
  • me frustrated

Other remarks

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: triageAwaiting investigation by maintainerstype: bugSomething isn't working

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions