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
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

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

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
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

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. 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

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
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Thanks for the reply.

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