-
Notifications
You must be signed in to change notification settings - Fork 21
Description
I have deployed a small private network on a VPS, I have 2 nodes connected with each other.. I can make transactions and see the results on the explorer. However, there is an endpoint in the back-end that is not working and returns the following error on the front client :
Http failure response for http://localhost:8080/api/supply: 500 Internal Server Error.
In order to make the client explorer application show the result from the new deployed private network, I had to change some parameters :
1- RPC URL and DB config in the /server/main.go file.
2- RPC URL and DB config in the /grabber/main.go file.
3- RPC URL and DB config in the env.sh file in the main directory.
Loading the explorer application without this customized configuration works just fine, it generates the error mentioned above after changing theses parameters.
All other endpoints are also working good, except the http://localhost:8080/api/supply.
May I please know the source of this problem ? Thanks in advance.
@treeder
EDIT : Additional info about the request from the back end log :
{ "severity":"INFO", "timestamp":"2022-02-28T13:07:26.467111654+01:00", "caller":"server/main.go:800", "message":"Request started", "requestID":"VirtualBox/V8YleAB5QK-000368", "httpRequest":{ "requestMethod":"GET", "requestUrl":"/api/supply", "requestSize":"0", "status":0, "responseSize":"", "userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:97.0) Gecko/20100101 Firefox/97.0", "remoteIp":"127.0.0.1:42674", "serverIp":"", "referer":"http://localhost:4200/", "latency":"", "cacheLookup":false, "cacheHit":false, "cacheValidatedWithOriginServer":false, "cacheFillBytes":"", "protocol":"HTTP/1.1" }, "logging.googleapis.com/labels":{}, "logging.googleapis.com/sourceLocation":{ "file":"/home/loukach/Desktop/Gochain-Explorer/server/main.go", "line":"800", "function":"main.(*zapLogFormatter).NewLogEntry" } }