Umbrel Timeout on API RPC Address Call


I think I’m having a timeout issue when I try to make API calls to the BTC RPC Explorer app using a script I wrote in Python. I’m running Umbrel on a Raspberry Pi4, and connecting to it with my laptop. When I send an API call for a summary of data pertaining to a specific bitcoin address (e.g. “localhost”/api/address/address, including an address at the end), python gives me the following error message:

(‘Connection aborted.’, RemoteDisconnected(‘Remote end closed connection without response’)).

Also, when I try to access the API URL using my browser, the browser fails to load the page with the JSON data. It seems like the requests are timing out. On the other hand, I have no problems getting data for blocks or txids from this API. Is there a way to elongate the time-out period, or otherwise address this problem? Any help is much appreciated. Thanks!

Are you trying to use the mempool’s API feature on your node? You might need to add the IP:port/api/address/address For more information, you can refer to the documentation at (Your node's IP):3006/docs/api/rest
For example, on my node, to access the mempool API, it is
I hope this helps you.

Thanks again, DHD. Yes, I included the port number in my API call, so really the API URL was IP/port/api/address/btcaddress (similar to your example above, with a btc address at the end).

There have been times when the API URL successfully returned the data for an address, but the success rate has been ~50% between successful returns and timeouts. So, I’m wondering what I could do to fix that, such as hypothetically lengthening the timeout window.