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

Http failure response for http://localhost:8080/api/supply: 500 Internal Server Error #556

Open
EL-MehdiLoukach opened this issue Feb 28, 2022 · 0 comments

Comments

@EL-MehdiLoukach
Copy link

EL-MehdiLoukach commented Feb 28, 2022

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" } }

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