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

Stacktrace when sending Content-type application json GET request #71

Open
d3ep4k opened this issue Nov 13, 2022 · 0 comments
Open

Stacktrace when sending Content-type application json GET request #71

d3ep4k opened this issue Nov 13, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@d3ep4k
Copy link
Contributor

d3ep4k commented Nov 13, 2022

It is incorrect to send application/json Content-TYpe when the request method is GET, still the server should give valid json error instead of throwing this error. Or it should handle the error.

com.eclipsesource.json.ParseException: Unexpected end of input at 1:1
com.eclipsesource.json.JsonParser.error(JsonParser.java:490)
com.eclipsesource.json.JsonParser.expected(JsonParser.java:484)
com.eclipsesource.json.JsonParser.readValue(JsonParser.java:193)
com.eclipsesource.json.JsonParser.parse(JsonParser.java:152)
com.eclipsesource.json.JsonParser.parse(JsonParser.java:91)
com.eclipsesource.json.Json.parse(Json.java:295)
com.github.wnameless.json.flattener.JsonFlattener.(JsonFlattener.java:122)
com.github.wnameless.json.flattener.JsonFlattener.flattenAsMap(JsonFlattener.java:99)
com.metamug.mason.entity.request.JsonStrategy.(JsonStrategy.java:39)
com.metamug.mason.entity.request.RequestAdapter.create(RequestAdapter.java:52)
com.metamug.mason.Router.processRequest(Router.java:636)
com.metamug.mason.Router.doFilter(Router.java:606)
com.metamug.api.mason.filters.AnalyticFilter.doFilter(AnalyticFilter.java:251)
org.apache.catalina.filters.CorsFilter.handleNonCORS(CorsFilter.java:352)
org.apache.catalina.filters.CorsFilter.doFilter(CorsFilter.java:171)
org.apache.catalina.filters.ExpiresFilter.doFilter(ExpiresFilter.java:1226)

@d3ep4k d3ep4k changed the title Unexpected end of input at 1:1 Unexpected end of input at 1:1 when sending Content-type application json GET request Nov 13, 2022
@d3ep4k d3ep4k changed the title Unexpected end of input at 1:1 when sending Content-type application json GET request Stacktrace when sending Content-type application json GET request Nov 13, 2022
@d3ep4k d3ep4k added the bug Something isn't working label Nov 13, 2022
@d3ep4k d3ep4k self-assigned this Nov 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant