Unable to update shipment status

Hi Team,
I am trying to update shipment status but getting 500 error please help

2023-10-26T11:42:23.311+05:30 DEBUG 40786 --- [nio-8080-exec-4] com.sdk.common.FDKLogger                 : --> PUT https://api.jmpx2.de/service/application/order/v1.0/orders/shipments/16971739907751178989/status
2023-10-26T11:42:23.312+05:30 DEBUG 40786 --- [nio-8080-exec-4] com.sdk.common.FDKLogger                 : Content-Type: application/json; charset=UTF-8
2023-10-26T11:42:23.312+05:30 DEBUG 40786 --- [nio-8080-exec-4] com.sdk.common.FDKLogger                 : Content-Length: 257
2023-10-26T11:42:23.313+05:30 DEBUG 40786 --- [nio-8080-exec-4] com.sdk.common.FDKLogger                 : x-application-id: 628dcf139de85c83dc0249c0
2023-10-26T11:42:23.313+05:30 DEBUG 40786 --- [nio-8080-exec-4] com.sdk.common.FDKLogger                 : x-application-token: N2rBRw1e3
2023-10-26T11:42:23.314+05:30 DEBUG 40786 --- [nio-8080-exec-4] com.sdk.common.FDKLogger                 : User-Agent: google
2023-10-26T11:42:23.314+05:30 DEBUG 40786 --- [nio-8080-exec-4] com.sdk.common.FDKLogger                 : Accept-Language: en-IN
2023-10-26T11:42:23.314+05:30 DEBUG 40786 --- [nio-8080-exec-4] com.sdk.common.FDKLogger                 : Authorization: Bearer NjI4ZGNmMTM5ZGU4NWM4M2RjMDI0OWMwOk4yckJSdzFlMw==
2023-10-26T11:42:23.315+05:30 DEBUG 40786 --- [nio-8080-exec-4] com.sdk.common.FDKLogger                 : x-fp-sdk-version: 1.3.4
2023-10-26T11:42:23.315+05:30 DEBUG 40786 --- [nio-8080-exec-4] com.sdk.common.FDKLogger                 : x-fp-date: 20231026T061223Z
2023-10-26T11:42:23.315+05:30 DEBUG 40786 --- [nio-8080-exec-4] com.sdk.common.FDKLogger                 : host: api.jmpx2.de
2023-10-26T11:42:23.316+05:30 DEBUG 40786 --- [nio-8080-exec-4] com.sdk.common.FDKLogger                 : x-fp-signature: v1:0504229b774283434e4e6a81d32a7bf4d26312f9e23eea8f64587bebcfa2b284
2023-10-26T11:42:23.316+05:30 DEBUG 40786 --- [nio-8080-exec-4] com.sdk.common.FDKLogger                 : 
2023-10-26T11:42:23.317+05:30 DEBUG 40786 --- [nio-8080-exec-4] com.sdk.common.FDKLogger                 : {"statuses":[{"shipments":[{"products":[{"line_number":1,"quantity":9,"identifier":"7509220"}],"identifier":"16971739907751178989"}],"status":"bag_confirmed"}],"task":true,"lock_after_transition":true,"force_transition":true,"unlock_before_transition":true}
2023-10-26T11:42:23.317+05:30 DEBUG 40786 --- [nio-8080-exec-4] com.sdk.common.FDKLogger                 : --> END PUT (257-byte body)
2023-10-26T11:42:23.703+05:30 DEBUG 40786 --- [nio-8080-exec-4] com.sdk.common.FDKLogger                 : <-- 500 https://api.jmpx2.de/service/application/order/v1.0/orders/shipments/16971739907751178989/status (385ms)
2023-10-26T11:42:23.704+05:30 DEBUG 40786 --- [nio-8080-exec-4] com.sdk.common.FDKLogger                 : date: Thu, 26 Oct 2023 06:12:23 GMT
2023-10-26T11:42:23.705+05:30 DEBUG 40786 --- [nio-8080-exec-4] com.sdk.common.FDKLogger                 : content-type: application/json
2023-10-26T11:42:23.705+05:30 DEBUG 40786 --- [nio-8080-exec-4] com.sdk.common.FDKLogger                 : content-length: 114
2023-10-26T11:42:23.706+05:30 DEBUG 40786 --- [nio-8080-exec-4] com.sdk.common.FDKLogger                 : strict-transport-security: max-age=63072000; includeSubdomains
2023-10-26T11:42:23.706+05:30 DEBUG 40786 --- [nio-8080-exec-4] com.sdk.common.FDKLogger                 : x-content-type-options: nosniff
2023-10-26T11:42:23.707+05:30 DEBUG 40786 --- [nio-8080-exec-4] com.sdk.common.FDKLogger                 : via: 1.1 google
2023-10-26T11:42:23.707+05:30 DEBUG 40786 --- [nio-8080-exec-4] com.sdk.common.FDKLogger                 : alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
2023-10-26T11:42:23.708+05:30 DEBUG 40786 --- [nio-8080-exec-4] com.sdk.common.FDKLogger                 : 
2023-10-26T11:42:23.709+05:30 DEBUG 40786 --- [nio-8080-exec-4] com.sdk.common.FDKLogger                 : {"status":500,"message":"Something went wrong!!","code":null,"exception":"InternalServerError","stack_trace":null}
2023-10-26T11:42:23.709+05:30 DEBUG 40786 --- [nio-8080-exec-4] com.sdk.common.FDKLogger                 : <-- END HTTP (114-byte body)
2023-10-26T11:48:24.788+05:30 ERROR 40786 --- [nio-8080-exec-4] c.f.scm.extn.controller.UtilController   : Exception while updating status : com.sdk.application.order.OrderApplicationService.updateShipmentStatus(OrderApplicationService.java:273) 
2023-10-26T11:48:24.779+05:30 ERROR 40786 --- [o-8080-Acceptor] org.apache.tomcat.util.net.NioEndpoint   : Error setting socket options

@yogesh_mahajan use Platform fdk “updateShipmentStatus” to update the status of your shipment.

Please refer the doc given below:
https://partners.fynd.com/help/docs/sdk/platform/order/updateShipmentStatus

1 Like