PM_OPEN_API_500 on accounts/v2/gettoken

Error integrated the API through Java springboot service. Full debug logs are here

2024-09-15 14:26:37,837 DEBUG [reactor-http-nio-2] r.u.Loggers$Slf4JLogger: [0769c376-1, L:/172.16.4.22:52955 - R:developer.paytmmoney.com/184.27.12.52:443] Handler is being applied: {uri=https://developer.paytmmoney.com/accounts/v2/gettoken, method=POST}
2024-09-15 14:26:38,007 DEBUG [reactor-http-nio-2] i.n.u.i.l.AbstractInternalLogger: [0769c376-1, L:/172.16.4.22:52955 - R:developer.paytmmoney.com/184.27.12.52:443] WRITE: 218B POST /accounts/v2/gettoken HTTP/1.1
user-agent: ReactorNetty/1.1.22
Accept: /
Accept: Content-Type
Accept: application/json
Host: developer.paytmmoney.com
Content-Type: application/json
content-length: 149

2024-09-15 14:26:38,010 DEBUG [reactor-http-nio-2] i.n.u.i.l.AbstractInternalLogger: [0769c376-1, L:/172.16.4.22:52955 - R:developer.paytmmoney.com/184.27.12.52:443] WRITE: 149B {“api_key”:“6d2axxxxxxx89”,“api_secret_key”:“5c48xxxxxxxxxxxx248”,“request_token”:“5fexxxxxxxxxxxcd”}
2024-09-15 14:26:38,012 DEBUG [reactor-http-nio-2] i.n.u.i.l.AbstractInternalLogger: [0769c376-1, L:/172.16.4.22:52955 - R:developer.paytmmoney.com/184.27.12.52:443] FLUSH
2024-09-15 14:26:38,021 DEBUG [reactor-http-nio-2] i.n.u.i.l.AbstractInternalLogger: [0769c376-1, L:/172.16.4.22:52955 - R:developer.paytmmoney.com/184.27.12.52:443] READ COMPLETE
2024-09-15 14:26:38,025 DEBUG [reactor-http-nio-2] i.n.u.i.l.AbstractInternalLogger: [0769c376-1, L:/172.16.4.22:52955 - R:developer.paytmmoney.com/184.27.12.52:443] READ COMPLETE
2024-09-15 14:26:38,691 DEBUG [reactor-http-nio-2] i.n.u.i.l.AbstractInternalLogger: [0769c376-1, L:/172.16.4.22:52955 - R:developer.paytmmoney.com/184.27.12.52:443] READ: 2001B HTTP/1.1 500 Internal Server Error
Content-Type: application/json
Content-Length: 74
strict-transport-security: max-age=31536000; includeSubDomains
Content-Security-Policy: default-src ‘self’ ; frame-ancestors ‘self’
x-content-type-options: nosniff
x-frame-options: SAMEORIGIN
x-xss-protection: 1; mode=block
Expires: Sun, 15 Sep 2024 08:56:38 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Sun, 15 Sep 2024 08:56:38 GMT
Connection: close

2024-09-15 14:26:38,703 DEBUG [reactor-http-nio-2] r.u.Loggers$Slf4JLogger: [0769c376-1, L:/172.16.4.22:52955 - R:developer.paytmmoney.com/184.27.12.52:443] Received response (auto-read:false) : RESPONSE(decodeResult: success, version: HTTP/1.1)
HTTP/1.1 500 Internal Server Error
Content-Type:
Content-Length:
strict-transport-security:
Content-Security-Policy:
x-content-type-options:
x-frame-options:
x-xss-protection:
Expires:
Cache-Control:
Pragma:
Date:
Connection:
2024-09-15 14:26:38,779 DEBUG [reactor-http-nio-2] i.n.u.i.l.AbstractInternalLogger: [0769c376-1, L:/172.16.4.22:52955 - R:developer.paytmmoney.com/184.27.12.52:443] READ: 74B {“status”:500,“message”:“Unexpected Error”,“error_code”:“PM_OPEN_API_500”}
2024-09-15 14:26:38,784 DEBUG [reactor-http-nio-2] r.u.Loggers$Slf4JLogger: [0769c376-1, L:/172.16.4.22:52955 - R:developer.paytmmoney.com/184.27.12.52:443] Received last HTTP packet
2024-09-15 14:26:38,813

This is resolved now, this was due to incorrect Accept header being passed in the request.

@frictionlessdev good to hear that, for any further queries you can also write to us at openapi.care@paytmmoney.com .