question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Webinterface doesn't receive data from the API

See original GitHub issue

Hi,

I’ve set up a new RaspiBlitz v1.8.0 on a Raspi4 with 8GB of RAM. I am able to login to the new web interface, but only see static stuff and spinning wheels: Bildschirmfoto 2022-07-30 um 14 16 03

Sometimes its just a spinning wheel (and after 10 minutes or so (!) it finally turns into the screenshot above): Bildschirmfoto 2022-07-30 um 14 25 55

In the settings, there is no information on RaspiBlitz or Blitz-API versions but the Reboot button works, so there has to be some communication to the API (or does that use a different connection?) Bildschirmfoto 2022-07-30 um 14 16 17

After a reboot its still the same.

The Blitz_API seems to be running:

root@raspberrypi:~# ps aux | grep api | grep -v grep blitzapi 783 2.2 0.7 929144 29628 ? Ssl 13:03 0:46 /usr/bin/python -m uvicorn app.main:app --port 11111 --host=0.0.0.0 --root-path /api

But with this via SSH on the RaspiBlitz:

curl --header “Content-Type: application/json”
–request POST
–data ‘{“password”:“mypassword”}’
http://127.0.0.1:11111/system/login

I get {"detail":"Not Found"}, with curl -N http://127.0.0.1:11111/v1/bitcoin/getblockchaininfo the same Not Found

I can’t find any logfile for the blitz_api. How can I debug this further?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:23 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
ChuckNorrisoncommented, Oct 18, 2022
1reaction
benjamin-wilsoncommented, Oct 14, 2022

Clean Proxmox 1.8 CLN install:

Oct 14 08:04:03 debian python[3531]: ERROR:uvicorn.error:Exception in ASGI application
Oct 14 08:04:03 debian python[3531]: Traceback (most recent call last):
Oct 14 08:04:03 debian python[3531]:   File "/usr/local/lib/python3.9/dist-packages/uvicorn/protocols/http/h11_impl.py", line 404, in run_asgi
Oct 14 08:04:03 debian python[3531]:     result = await app(  # type: ignore[func-returns-value]
Oct 14 08:04:03 debian python[3531]:   File "/usr/local/lib/python3.9/dist-packages/uvicorn/middleware/proxy_headers.py", line 78, in __call__
Oct 14 08:04:03 debian python[3531]:     return await self.app(scope, receive, send)
Oct 14 08:04:03 debian python[3531]:   File "/usr/local/lib/python3.9/dist-packages/fastapi/applications.py", line 269, in __call__
Oct 14 08:04:03 debian python[3531]:     await super().__call__(scope, receive, send)
Oct 14 08:04:03 debian python[3531]:   File "/usr/local/lib/python3.9/dist-packages/starlette/applications.py", line 124, in __call__
Oct 14 08:04:03 debian python[3531]:     await self.middleware_stack(scope, receive, send)
Oct 14 08:04:03 debian python[3531]:   File "/usr/local/lib/python3.9/dist-packages/starlette/middleware/errors.py", line 184, in __call__
Oct 14 08:04:03 debian python[3531]:     raise exc
Oct 14 08:04:03 debian python[3531]:   File "/usr/local/lib/python3.9/dist-packages/starlette/middleware/errors.py", line 162, in __call__
Oct 14 08:04:03 debian python[3531]:     await self.app(scope, receive, _send)
Oct 14 08:04:03 debian python[3531]:   File "/usr/local/lib/python3.9/dist-packages/starlette/middleware/cors.py", line 84, in __call__
Oct 14 08:04:03 debian python[3531]:     await self.app(scope, receive, send)
Oct 14 08:04:03 debian python[3531]:   File "/usr/local/lib/python3.9/dist-packages/starlette/exceptions.py", line 93, in __call__
Oct 14 08:04:03 debian python[3531]:     raise exc
Oct 14 08:04:03 debian python[3531]:   File "/usr/local/lib/python3.9/dist-packages/starlette/exceptions.py", line 82, in __call__
Oct 14 08:04:03 debian python[3531]:     await self.app(scope, receive, sender)
Oct 14 08:04:03 debian python[3531]:   File "/usr/local/lib/python3.9/dist-packages/fastapi/middleware/asyncexitstack.py", line 21, in __call__
Oct 14 08:04:03 debian python[3531]:     raise e
Oct 14 08:04:03 debian python[3531]:   File "/usr/local/lib/python3.9/dist-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
Oct 14 08:04:03 debian python[3531]:     await self.app(scope, receive, send)
Oct 14 08:04:03 debian python[3531]:   File "/usr/local/lib/python3.9/dist-packages/starlette/routing.py", line 670, in __call__
Oct 14 08:04:03 debian python[3531]:     await route.handle(scope, receive, send)
Oct 14 08:04:03 debian python[3531]:   File "/usr/local/lib/python3.9/dist-packages/starlette/routing.py", line 418, in handle
Oct 14 08:04:03 debian python[3531]:     await self.app(scope, receive, send)
Oct 14 08:04:03 debian python[3531]:   File "/usr/local/lib/python3.9/dist-packages/fastapi/applications.py", line 269, in __call__
Oct 14 08:04:03 debian python[3531]:     await super().__call__(scope, receive, send)
Oct 14 08:04:03 debian python[3531]:   File "/usr/local/lib/python3.9/dist-packages/starlette/applications.py", line 124, in __call__
Oct 14 08:04:03 debian python[3531]:     await self.middleware_stack(scope, receive, send)
Oct 14 08:04:03 debian python[3531]:   File "/usr/local/lib/python3.9/dist-packages/starlette/middleware/errors.py", line 184, in __call__
Oct 14 08:04:03 debian python[3531]:     raise exc
Oct 14 08:04:03 debian python[3531]:   File "/usr/local/lib/python3.9/dist-packages/starlette/middleware/errors.py", line 162, in __call__
Oct 14 08:04:03 debian python[3531]:     await self.app(scope, receive, _send)
Oct 14 08:04:03 debian python[3531]:   File "/usr/local/lib/python3.9/dist-packages/starlette/exceptions.py", line 93, in __call__
Oct 14 08:04:03 debian python[3531]:     raise exc
Oct 14 08:04:03 debian python[3531]:   File "/usr/local/lib/python3.9/dist-packages/starlette/exceptions.py", line 82, in __call__
Oct 14 08:04:03 debian python[3531]:     await self.app(scope, receive, sender)
Oct 14 08:04:03 debian python[3531]:   File "/usr/local/lib/python3.9/dist-packages/fastapi/middleware/asyncexitstack.py", line 21, in __call__
Oct 14 08:04:03 debian python[3531]:     raise e
Oct 14 08:04:03 debian python[3531]:   File "/usr/local/lib/python3.9/dist-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
Oct 14 08:04:03 debian python[3531]:     await self.app(scope, receive, send)
Oct 14 08:04:03 debian python[3531]:   File "/usr/local/lib/python3.9/dist-packages/starlette/routing.py", line 670, in __call__
Oct 14 08:04:03 debian python[3531]:     await route.handle(scope, receive, send)
Oct 14 08:04:03 debian python[3531]:   File "/usr/local/lib/python3.9/dist-packages/starlette/routing.py", line 266, in handle
Oct 14 08:04:03 debian python[3531]:     await self.app(scope, receive, send)
Oct 14 08:04:03 debian python[3531]:   File "/usr/local/lib/python3.9/dist-packages/starlette/routing.py", line 65, in app
Oct 14 08:04:03 debian python[3531]:     response = await func(request)
Oct 14 08:04:03 debian python[3531]:   File "/usr/local/lib/python3.9/dist-packages/fastapi/routing.py", line 231, in app
Oct 14 08:04:03 debian python[3531]:     raw_response = await run_endpoint_function(
Oct 14 08:04:03 debian python[3531]:   File "/usr/local/lib/python3.9/dist-packages/fastapi/routing.py", line 160, in run_endpoint_function
Oct 14 08:04:03 debian python[3531]:     return await dependant.call(**values)
Oct 14 08:04:03 debian python[3531]:   File "./app/routers/setup.py", line 31, in get_status
Oct 14 08:04:03 debian python[3531]:     setupPhase = await redis_get("setupPhase")
Oct 14 08:04:03 debian python[3531]:   File "./app/utils.py", line 64, in redis_get
Oct 14 08:04:03 debian python[3531]:     return v.decode("utf-8")
Oct 14 08:04:03 debian python[3531]: AttributeError: 'str' object has no attribute 'decode'
Read more comments on GitHub >

github_iconTop Results From Across the Web

Fetching data from the server - Learn web development | MDN
This article shows how to start working with Fetch to fetch data from the server.
Read more >
The Ultimate Guide to Accessing & Using APIs - HubSpot Blog
By leveraging APIs to access another company's data, piece of code, ... that doesn't exist or that it doesn't have permission to access...
Read more >
c# - Can't access WEB API with ip:port but can with localhost ...
Instead just start a debug session of your web app from Visual Studio. It will restart IIS. As a bonus, you can confirm...
Read more >
How to Use an API: Just the Basics 2022 | TechnologyAdvice
Learn more about API access & data today. ... Rather than building a web mapping platform, companies like Uber can use the API...
Read more >
Why Don't All Websites Have an API? And What Can You Do ...
On the web, APIs make it possible for sites to let other apps and ... in general, doesn't have rate limits, and you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found