-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
topic:apirpc/http related issuerpc/http related issue
Description
System information
java-tron version: 4.7.01
1. What did you do?
I called an non-existent API on a node:
/wallet/getnowblock12. What did you expect to see?
Java-tron is the only node service provided by TRON. For all API returns, successful or failed, the return type should be in json type to keep consistent. Cluttered HTMLs are returned now when calling non-existent APIs and these have changed with a recent org.eclipse.jetty:jetty-server upgrade. This has caused obstacles to the integration of other applications.
It would be better to return a json containing errors like Trongrid:

3. What did you see instead?
Some HTMLs, contains error reasons but cluttered.
Metadata
Metadata
Assignees
Labels
topic:apirpc/http related issuerpc/http related issue