PHP cURL Error

G’day everyone, just wondering if someone could shed some light on this ugly error I am getting when trying to send a request with cURL to an SMS Gateway:

ERROR: Exception in API method java.lang.NumberFormatException: Zero length BigInteger at java.math.BigInteger.(BigInteger.java:170) at com.zinek.smpp.MeXWSHTTPServlet.sendsms(MeXWSHTTPServlet.java:735) at com.zinek.smpp.MeXWSHTTPServlet.doPost(MeXWSHTTPServlet.java:77) at com.zinek.smpp.MeXWSHTTPServlet.doGet(MeXWSHTTPServlet.java:33) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595)

Thanks in advance

I guess I’m missing something, but that doesn’t look like any PHP error I’ve ever seen. It looks like some of the many Java errors I’ve seen though.

Is this what you’re getting back? If so, my guess would be that the API is expecting a “BigInteger” and you’re not sending one.

Yep, that’s what is was. I was missing a parameter that the API was expecting.

Thanks

Sounds like a poorly writen API, in that case :slight_smile: Sprouting errors like that