Skip to content

Unclear returns for non-existent APIs #4952

@Vita-Diva

Description

@Vita-Diva

System information

java-tron version: 4.7.01

1. What did you do?

I called an non-existent API on a node:

/wallet/getnowblock1

2. 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

No one assigned

    Labels

    topic:apirpc/http related issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions