Use PDIs? Take our 5-minute survey to help shape the PDI roadmap.

Error Message - Method failed: (xxxxxxx) with code: 422

Ravi Kand
Tera Contributor

Dear All,

 

While testing the endpoint connectivity using REST Message (POST Method), I have received the below Response.

Please refer the below screenshots and suggest any errors?


Response:

{"detail":[{"loc":["body","username"],"msg":"field required","type":"value_error.missing"},{"loc":["body","password"],"msg":"field required","type":"value_error.missing"}]}

 

RaviKand_1-1711545144577.png

RaviKand_0-1711545044914.png

 

Thank you,
Ravi

 

5 REPLIES 5

Dr Atul G- LNG
Tera Patron

Hi @Ravi Kand 

 

Follow trouble shooting steps here:

https://www.servicenow.com/community/developer-forum/solve-log-errors-response-status-422-body-quot-...

 

content should be "" like this

AGLearnNGrow_0-1711545554507.png

 

****************************************************************************************
Regards
Dr Atul G. - Learn N Grow Together ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
******************************************************************************************

Thank you for your support. The issue is still not resolved.

 

Opps...  Ravi , do one thing 

 

check the end point url m table names and syntax , the issue is with same only. 

****************************************************************************************
Regards
Dr Atul G. - Learn N Grow Together ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
******************************************************************************************

Thanks for the reply.

We are working with ServiceNow Support team to resolve the issue.