Shubham Verma
Shubham Verma

Reputation: 9961

Phone Pe Health Check - Error HTTP 406 Not Acceptable

I am trying to check the health of the PhonePe gateway, but I am getting error "HTTP 406 Not Acceptable":

{ code: 406, message: 'HTTP 406 Not Acceptable' }

I am using the following doc to integrate: https://developer.phonepe.com/v1/reference/phonepe-pg-healthstatus

enter image description here

Upvotes: 1

Views: 126

Answers (1)

Shubham Verma
Shubham Verma

Reputation: 9961

I explored and got the solution:

I am sending accept: text/plain in the header, this is wrong, I need to change accept: */* so that it can accept anything.

Update Header: accept: */*

enter image description here

Upvotes: 0

Related Questions