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

pinpoint-quickstart test application request 404 error #195

Open
IMWoo94 opened this issue Apr 9, 2024 · 0 comments
Open

pinpoint-quickstart test application request 404 error #195

IMWoo94 opened this issue Apr 9, 2024 · 0 comments

Comments

@IMWoo94
Copy link

IMWoo94 commented Apr 9, 2024

Hello,

I started to using pinpoint apm with docker compose. In this tutorial
pinpoint-docker
image

After running the monitoring normally, there was a problem with the request operation.
The Quickstart Application provided in the guide is causing 404 errors when requesting a specific URL.
The specific URL is "/callSelf/httpclient4/getTwitterUrlCount.pinpoint".

스크린샷 2024-04-09 오후 10 44 26

Problem

image

pinpoint-quickstart-testapp.war

I analyzed the files in the path through decompiles, but there seemed to be no problem with the code.
However, it seems that the Twitter API is no longer available.

HttpClient4Controller does not have mapping information defined for Twitter API.

It would be nice if you could simply provide exception response information through exception handling such as ExceptionHandler.
Or, if you write down the failure case in the API description, it seems that the user will not misunderstand.

For other url(getGeoCode), we are sending a response with details about the error through exception handling when a problem occurs.

While this is a guide project, I suggest that it's better to fix the code causing errors.

Thank you for taking the time to read the long text. I hope it was helpful.


Error log

image
  • com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
    at [Source: org.apache.http.conn.EofSensorInputStream@33f9fb6; line: 1, column: 2]
    com.fasterxml.jackson.core.JsonParser._constructError(JsonParser.java:1419)
    com.fasterxml.jackson.core.base.ParserMinimalBase._reportError(ParserMinimalBase.java:508)
    com.fasterxml.jackson.core.base.ParserMinimalBase._reportUnexpectedChar(ParserMinimalBase.java:437)
    com.fasterxml.jackson.core.json.UTF8StreamJsonParser._handleUnexpectedValue(UTF8StreamJsonParser.java:2363)
    com.fasterxml.jackson.core.json.UTF8StreamJsonParser._nextTokenNotInObject(UTF8StreamJsonParser.java:794)
    com.fasterxml.jackson.core.json.UTF8StreamJsonParser.nextToken(UTF8StreamJsonParser.java:690)
    com.fasterxml.jackson.databind.ObjectMapper._initForReading(ObjectMapper.java:3105)
    com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3051)
    com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2207)
    com.navercorp.pinpoint.testapp.service.remote.HttpRemoteService.execute(HttpRemoteService.java:95)
    com.navercorp.pinpoint.testapp.service.remote.HttpRemoteService.get(HttpRemoteService.java:37)
    com.navercorp.pinpoint.testapp.controller.CallSelfController.httpClient4GetTwitterUrlCount(CallSelfController.java:70)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    java.lang.reflect.Method.invoke(Method.java:498)
    org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221)
    org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:137)
    org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:110)
    org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:776)
    org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:705)
    org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
    org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:959)
    org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893)
    org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:967)
    org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:858)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:489)
    org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:843)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:583)
    org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
    org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:85)
    org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
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