Question

REST API Requests Timing Out On Sandbox


Userlevel 1

We set up a REST API integration with our Acumatica account using Zapier and it works fine. We then tried connecting it to our sandbox account as well and it stopped working after a day. The error is that the connection timed out. We cannot connect from Zapier or web based Postman. Interestingly, we can connect from Postman desktop. The version on our sandbox account is 2022 R1.

Is there some sort of setting on the sandbox that is blocking the requests?


12 replies

Userlevel 7
Badge +4

@DavidMod you mentioned that “it stopped working after a day”. Did it work initially?

Are you aware of anything that changed, security policy, user setting, or something related?

Userlevel 1

We only opened up permissions and settings. We didn’t take any away. We can’t think of anything new that should be blocking.

Userlevel 1

I checked the logs and we are getting the error “A potentially dangerous Request.Path value was detected from the client (:).” 

 

Although on second thought I think we are getting that error even when not trying to connect from the API.

Userlevel 7
Badge +4

you mean when trying to login through UI?

Userlevel 1

No. The error might not be related. The issue is when using the API. The UI works fine.

 

Userlevel 7
Badge +4

I checked the logs and we are getting the error “A potentially dangerous Request.Path value was detected from the client (:).” 

What logs you are seeing this message on, Acumatica or server, firewall?

Userlevel 1

Acumatica. I can log in using the UI, so it does not seem to be a server issue.

Userlevel 7
Badge +4

i believe issue is coming from c# (with :” in your URL)

similar issue has been discussed at c# - A potentially dangerous Request.Path value was detected from the client (*) - Stack Overflow

 

@DavidMod are you able to outline your solution to connecting to Zapier? I’m interested in this. Thanks!

Userlevel 7
Badge +4

@DavidMod, Can you share the following details that would help us check this,?

  • Endpoint URL
  • Request Payload(request body)
  • Complete response from Acumatica and the http response code
  • a few screenshots

Thanks,

Userlevel 1

@DavidMod, Can you share the following details that would help us check this,?

  • Endpoint URL
  • Request Payload(request body)
  • Complete response from Acumatica and the http response code
  • a few screenshots

Thanks,

Thank you for your help!
 

Here is a screenshot of the full request and response from Postman:
 

And here is the copyable version of the request:

 

POST http://18.188.246.242/PR000008072/identity/connect/token

 

  • Request Headers

Content-Type: application/x-www-form-urlencoded

Authorization: Basic N0NERUIyQTYtMjJCOS03Q0I1LUY1ODgtMjlBRUVEMDk1RDlCQE1vZHVsYXIgQ2xvc2V0czpjRUJrdFUxclBTUnNOU0dDVlViTEJR

User-Agent: PostmanRuntime/7.32.2

Accept: */*

Cache-Control: no-cache

Postman-Token: 42c026a6-78c2-4e55-8bdf-5a50584fa950

Host: 18.188.246.242

Accept-Encoding: gzip, deflate, br

Connection: keep-alive

  • Request Body

    1.  grant_type: "authorization_code"

    2.  code: "g2JAiYqQ6RodxGPrdjPZQuh_Febh0Q5ndUbP7mAvxEQ"

    3.  redirect_uri: "https://oauth.pstmn.io/v1/browser-callback"

Userlevel 7
Badge

Hi @DavidMod were you able to find a solution? Thank you!

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved