Issue with Restlet

I created a RESTLET sometime ago.  I had a C# program invoking it and all was working well. Then it stopped recently. Now I am going into the NetSuite system and the restlet to test it to see if it still works and I am getting this error.

Any idea?

error code: MISSING_REQ_ARG error message: {“type”:”error.SuiteScriptError”,”name”:”MISSING_REQ_ARG”,”message”:”Missing a required argument: [recordtype] for method: GET”,”stack”:[“createError(N/error)”,”doValidation(/SuiteScripts/HomeTrendsLCC/nsacs_doorcountrestlet.js:12)”,”doGet(/SuiteScripts/HomeTrendsLCC/nsacs_doorcountrestlet.js:35)”,”createError(N/error)”],”cause”:{“name”:”MISSING_REQ_ARG”,”message”:”Missing a required argument: [recordtype] for method: GET”},”id”:””,”notifyOff”:false,”userFacing”:true}

Rookie Asked on April 5, 2023 in SuiteScript.
Add Comment
1 Answer(s)

Seems like your GET call from the C# program is missing a required argument “recordtype”

Beginner Answered on April 5, 2023.

Thank you! I built it so long ago I forgot that I needed the params. The restlet still works as expected. The issue now to figure out is why I can no longer call it from my C# application. Something seems to have changed in how the authentication works in OAuth. For some reason it gives me a 403 Forbidden now.

 

GenerateAuthorizationHeaderValue(uri, consumer_id, consumer_secret, token_id, token_secret, httpMethod, NS_realm);

on April 6, 2023.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   Become a Sponsor   Become a Sponsor