Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on firmware. #12

Open
DieterKoblenz opened this issue Mar 10, 2022 · 0 comments
Open

Error on firmware. #12

DieterKoblenz opened this issue Mar 10, 2022 · 0 comments

Comments

@DieterKoblenz
Copy link

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 -

`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant