Ask a Question

Not Authorized message when submitting POST request

jodydowling
New Contributor

Not Authorized message when submitting POST request

Submitting POST JSON request via Postman works perfectly.  Imported the Postman collection to ReadyAPI but when executing the request, I'm receiving a Not Authorized message.  Sample JSON below.  Seems to be ignoring the auth section.  Any ideas?

 

POST {service.endpoint}/clients/api HTTP/1.1

Accept-Encoding: gzip,deflate

Content-Type: application/json

Content-Length: 2524

Host: {service.endpoint}

Connection: Keep-Alive

User-Agent: Apache-HttpClient/4.5.2 (Java/15)

 

{

    "auth" : {

        "user_id"    : "19644",

        "api_key"   : "dbf067d8609igiot8i6troiuvoiuyfuyfg43ea702d"

    },

    "order" : {

        "type"                                        : "New",

        "client_file_number"            : "123456789A",

        "lender"                                     : "Some Bank",

        "loan_amount"                        : "200000",

        "loan_number"                       : "1234-5678-90",

        "full_street_address"            : "123 Main St.",

        "street_number"                    : "123",

        "street_name"                         : "Main St."

}

 

 

2 REPLIES 2
nmrao
Community Hero

Re: Not Authorized message when submitting POST request

Please check if there are any headers missing from postman.


Regards,
Rao.
richie
Community Hero

Re: Not Authorized message when submitting POST request

Hey @jodydowling,

Yeah just reiterating what Rao already said.

If you compare the full RAW request (URI, payload and headers) from your request in Postman against the same request in ReadyAPI youll see the differences and it's likely to be missing headers you just need tp addinto ReadyAPI.

Cheers,

Rich
if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta
cancel
Showing results for 
Search instead for 
Did you mean: