You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After some long night of fiddling with this, I've managed to start the docker containers.
I added the dns and forwarded to the server via an a-record.
I'm getting this in the log:
`web | Post payload : {"serial_number": "H010-0630926", "mac_address": "0000682719048CB8", "product_id": "1", "firmware_version": "2.43"}
web | /usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py:1043: InsecureRequestWarning: Unverified HTTPS request is being made to host 'hub.api.surehub.io'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
web | warnings.warn(
web | 172.19.0.1 - - [10/Mar/2022 21:12:07] "GET /api/firmware HTTP/1.1" 405 -
web | [2022-03-10 21:12:07,833] ERROR in app: Exception on /api/credentials [POST]
web | Traceback (most recent call last):
web | File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 2073, in wsgi_app
web | response = self.full_dispatch_request()
web | File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1518, in full_dispatch_request
web | rv = self.handle_user_exception(e)
web | File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1516, in full_dispatch_request
web | rv = self.dispatch_request()
web | File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1502, in dispatch_request
web | return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
web | File "app.py", line 73, in credentials
web | dlfirmware(request.form['serial_number'],0)
web | File "app.py", line 52, in dlfirmware
web | response.raise_for_status() # ensure we notice bad responses
web | File "/usr/local/lib/python3.8/site-packages/requests/models.py", line 960, in raise_for_status
web | raise HTTPError(http_error_msg, response=self)
web | requests.exceptions.HTTPError: 405 Client Error: METHOD NOT ALLOWED for url: https://hub.api.surehub.io:443/api/firmware
web | 192.168.1.66 - - [10/Mar/2022 21:12:07] "POST /api/credentials HTTP/1.1" 500 -
`
The text was updated successfully, but these errors were encountered:
After some long night of fiddling with this, I've managed to start the docker containers.
I added the dns and forwarded to the server via an a-record.
I'm getting this in the log:
`web | Post payload : {"serial_number": "H010-0630926", "mac_address": "0000682719048CB8", "product_id": "1", "firmware_version": "2.43"}
web | /usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py:1043: InsecureRequestWarning: Unverified HTTPS request is being made to host 'hub.api.surehub.io'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
web | warnings.warn(
web | 172.19.0.1 - - [10/Mar/2022 21:12:07] "GET /api/firmware HTTP/1.1" 405 -
web | [2022-03-10 21:12:07,833] ERROR in app: Exception on /api/credentials [POST]
web | Traceback (most recent call last):
web | File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 2073, in wsgi_app
web | response = self.full_dispatch_request()
web | File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1518, in full_dispatch_request
web | rv = self.handle_user_exception(e)
web | File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1516, in full_dispatch_request
web | rv = self.dispatch_request()
web | File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1502, in dispatch_request
web | return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
web | File "app.py", line 73, in credentials
web | dlfirmware(request.form['serial_number'],0)
web | File "app.py", line 52, in dlfirmware
web | response.raise_for_status() # ensure we notice bad responses
web | File "/usr/local/lib/python3.8/site-packages/requests/models.py", line 960, in raise_for_status
web | raise HTTPError(http_error_msg, response=self)
web | requests.exceptions.HTTPError: 405 Client Error: METHOD NOT ALLOWED for url: https://hub.api.surehub.io:443/api/firmware
web | 192.168.1.66 - - [10/Mar/2022 21:12:07] "POST /api/credentials HTTP/1.1" 500 -
`
The text was updated successfully, but these errors were encountered: