[API] Error Updating ShopPackage


#1

Method Used:

Error Message:

Stack Trace:

[22:21:45] [OkHttp https://api.cubedpay.com/.../WARN]: java.util.concurrent.CompletionException: co.melondev.cubedpay.CubedPayException: Server sent back invalid json:
[22:21:45] [OkHttp https://api.cubedpay.com/.../WARN]: <br />
[22:21:45] [OkHttp https://api.cubedpay.com/.../WARN]: <b>Fatal error</b>:  Uncaught Error: Call to a member function exist() on null in /var/www/html/methods/v1/shop/package/update.php:27
[22:21:45] [OkHttp https://api.cubedpay.com/.../WARN]: Stack trace:
[22:21:45] [OkHttp https://api.cubedpay.com/.../WARN]: #0 /var/www/html/API.php(94): Load-&gt;{closure}(Object(APIMethod))
[22:21:45] [OkHttp https://api.cubedpay.com/.../WARN]: #1 /var/www/html/API.php(63): API::runMethod('PATCH::/SHOP/{S...')
[22:21:45] [OkHttp https://api.cubedpay.com/.../WARN]: #2 /var/www/html/index.php(104): API::findMethod('/v1')
[22:21:45] [OkHttp https://api.cubedpay.com/.../WARN]: #3 {main}
[22:21:45] [OkHttp https://api.cubedpay.com/.../WARN]:   thrown in <b>/var/www/html/methods/v1/shop/package/update.php</b> on line <b>27</b><br />
[22:21:45] [OkHttp https://api.cubedpay.com/.../WARN]: 
[22:21:45] [OkHttp https://api.cubedpay.com/.../WARN]: 	at java.util.concurrent.CompletableFuture.encodeThrowable(Unknown Source)
[22:21:45] [OkHttp https://api.cubedpay.com/.../WARN]: 	at java.util.concurrent.CompletableFuture.completeThrowable(Unknown Source)
[22:21:45] [OkHttp https://api.cubedpay.com/.../WARN]: 	at java.util.concurrent.CompletableFuture.uniAccept(Unknown Source)
[22:21:45] [OkHttp https://api.cubedpay.com/.../WARN]: 	at java.util.concurrent.CompletableFuture$UniAccept.tryFire(Unknown Source)
[22:21:45] [OkHttp https://api.cubedpay.com/.../WARN]: 	at java.util.concurrent.CompletableFuture.postComplete(Unknown Source)
[22:21:45] [OkHttp https://api.cubedpay.com/.../WARN]: 	at java.util.concurrent.CompletableFuture.completeExceptionally(Unknown Source)
[22:21:45] [OkHttp https://api.cubedpay.com/.../WARN]: 	at retrofit2.adapter.java8.Java8CallAdapterFactory$BodyCallAdapter$2.onFailure(Java8CallAdapterFactory.java:114)
[22:21:45] [OkHttp https://api.cubedpay.com/.../WARN]: 	at retrofit2.OkHttpCall$1.callFailure(OkHttpCall.java:135)
[22:21:45] [OkHttp https://api.cubedpay.com/.../WARN]: 	at retrofit2.OkHttpCall$1.onResponse(OkHttpCall.java:118)
[22:21:45] [OkHttp https://api.cubedpay.com/.../WARN]: 	at okhttp3.RealCall$AsyncCall.execute(RealCall.java:153)
[22:21:45] [OkHttp https://api.cubedpay.com/.../WARN]: 	at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
[22:21:45] [OkHttp https://api.cubedpay.com/.../WARN]: 	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
[22:21:45] [OkHttp https://api.cubedpay.com/.../WARN]: 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
[22:21:45] [OkHttp https://api.cubedpay.com/.../WARN]: 	at java.lang.Thread.run(Unknown Source)
[22:21:45] [OkHttp https://api.cubedpay.com/.../WARN]: Caused by: co.melondev.cubedpay.CubedPayException: Server sent back invalid json:
[22:21:45] [OkHttp https://api.cubedpay.com/.../WARN]: <br />
[22:21:45] [OkHttp https://api.cubedpay.com/.../WARN]: <b>Fatal error</b>:  Uncaught Error: Call to a member function exist() on null in /var/www/html/methods/v1/shop/package/update.php:27
[22:21:45] [OkHttp https://api.cubedpay.com/.../WARN]: Stack trace:
[22:21:45] [OkHttp https://api.cubedpay.com/.../WARN]: #0 /var/www/html/API.php(94): Load-&gt;{closure}(Object(APIMethod))
[22:21:45] [OkHttp https://api.cubedpay.com/.../WARN]: #1 /var/www/html/API.php(63): API::runMethod('PATCH::/SHOP/{S...')
[22:21:45] [OkHttp https://api.cubedpay.com/.../WARN]: #2 /var/www/html/index.php(104): API::findMethod('/v1')
[22:21:45] [OkHttp https://api.cubedpay.com/.../WARN]: #3 {main}
[22:21:45] [OkHttp https://api.cubedpay.com/.../WARN]:   thrown in <b>/var/www/html/methods/v1/shop/package/update.php</b> on line <b>27</b><br />
[22:21:45] [OkHttp https://api.cubedpay.com/.../WARN]: 
[22:21:45] [OkHttp https://api.cubedpay.com/.../WARN]: 	at co.melondev.cubedpay.envelope.APIEnvelopeTransformerConverter.convert(APIEnvelopeTransformerConverter.java:30)
[22:21:45] [OkHttp https://api.cubedpay.com/.../WARN]: 	at co.melondev.cubedpay.envelope.APIEnvelopeTransformerConverter.convert(APIEnvelopeTransformerConverter.java:13)
[22:21:45] [OkHttp https://api.cubedpay.com/.../WARN]: 	at retrofit2.ServiceMethod.toResponse(ServiceMethod.java:122)
[22:21:45] [OkHttp https://api.cubedpay.com/.../WARN]: 	at retrofit2.OkHttpCall.parseResponse(OkHttpCall.java:217)
[22:21:45] [OkHttp https://api.cubedpay.com/.../WARN]: 	at retrofit2.OkHttpCall$1.onResponse(OkHttpCall.java:116)
[22:21:45] [OkHttp https://api.cubedpay.com/.../WARN]: 	... 5 more
[22:21:46]

#2

This issue has yet to be resolved - If you need any more information, please let me know so I can help :smiley:


#3

Hi Bert,

Thanks for reporting this and bringing it up again. I’ve contacted the relevant team and they should be fixing this very soon. I will let you know once it’s been fixed.

Thanks
Stuart