HTTP 状态 500 – 内部服务器错误,同时使用 esign genie api 在虚拟机中下载 excel 文件

HTTP Status 500 – Internal Server Error, while download excel file in vm using esign genie api

我检查了使用 esign genie API 下载 excel 个文件。在 vm.

中执行 运行 curl 命令时抛出错误

错误-HTTP 状态 500 – 内部服务器错误

你有什么想法,如果你之前用它来下载报告的话。 Api 文档 link-esign genie api documentaion link

谁能告诉我为什么会出现此错误,因为我在 curl 命令中看到多个错误输出。

错误-
java.lang.NullPointerException
HTTP 状态 500 – 内部服务器错误

    https://developers.esigngenie.com/#download_report
    Curl Command-
    curl -X POST \
      https://www.esigngenie.com/esign/api/folders/getFolders/download \
      -H 'authorization: Bearer <access token>' \
      -H 'cache-control: no-cache' \
      -H 'content-type: application/json' 
    $ curl -X POST https://www.esigngenie.com/esign/api/folders/getFolders/download -H 'authorization: Bearer <access token>' -H 'cache-control: no-cache' -H 'content-type: application/json'
    <!doctype html><html lang="en"><head><title>HTTP Status 500 – Internal Server Error</title><style type="text/css">body {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP Status 500 – Internal Server Error</h1><hr class="line" /><p><b>Type</b> Exception Report</p><p><b>Message</b> java.lang.NullPointerException</p><p><b>Description</b> The server encountered an unexpected condition that prevented it from fulfilling the request.</p><p><b>Exception</b> <pre>javax.servlet.ServletException: java.lang.NullPointerException
         org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:489)
         org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:427)
         org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:388)
         org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:341)
         org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:228)
         org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
         org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:89)
         com.esigngenie.product.web.filters.CacheFilter.doFilter(CacheFilter.java:123)
         com.planetj.servlet.filter.compression.CompressingFilter.doFilter(CompressingFilter.java:293)
    </pre></p><p><b>Root Cause</b> <pre>java.lang.NullPointerException
com.esigngenie.product.api.resources.EnvelopesResource.getAllFolderByCompanyAndStatusExcel(EnvelopesResource.java:9423)
        sun.reflect.GeneratedMethodAccessor7896.invoke(Unknown Source)
        sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        java.lang.reflect.Method.invoke(Method.java:498)
        org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory.invoke(ResourceMethodInvocationHandlerFactory.java:81)
        org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.run(AbstractJavaResourceMethodDispatcher.java:144)
        org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161)
        org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:160)
        org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99)
        org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389)
        org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347)
        org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102)
        org.glassfish.jersey.server.ServerRuntime.run(ServerRuntime.java:326)
        org.glassfish.jersey.internal.Errors.call(Errors.java:271)
        org.glassfish.jersey.internal.Errors.call(Errors.java:267)
        org.glassfish.jersey.internal.Errors.process(Errors.java:315)
        org.glassfish.jersey.internal.Errors.process(Errors.java:297)
        org.glassfish.jersey.internal.Errors.process(Errors.java:267)
        org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)
        org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305)
        org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154)
        org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:473)
        org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:427)
        org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:388)
        org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:341)
        org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:228)
        org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
        org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:89)
        com.esigngenie.product.web.filters.CacheFilter.doFilter(CacheFilter.java:123)
        com.planetj.servlet.filter.compression.CompressingFilter.doFilter(CompressingFilter.java:293)
</pre></p><p><b>Note</b> The full stack trace of the root cause is available in the server logs.</p><hr class="line" /><h3>Apache Tomcat/7.0.105</h3></body></html>u

这看起来像是网站内部错误,因为错误 500 是服务器错误。开发人员修复它时,您需要稍等片刻。 你的要求没有问题:)