Skip to main content
Question

REST API Requests Timing Out On Sandbox


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?

RohitRattan88
Acumatica Moderator
Forum|alt.badge.img+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?


  • Freshman II
  • April 28, 2023

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


  • Freshman II
  • April 28, 2023

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.


RohitRattan88
Acumatica Moderator
Forum|alt.badge.img+4

you mean when trying to login through UI?


  • Freshman II
  • April 28, 2023

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

 


RohitRattan88
Acumatica Moderator
Forum|alt.badge.img+4
DavidMod wrote:

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?


  • Freshman II
  • April 28, 2023

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


RohitRattan88
Acumatica Moderator
Forum|alt.badge.img+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

 


Forum|alt.badge.img
  • Freshman I
  • April 28, 2023

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


Vignesh Ponnusamy
Acumatica Moderator
Forum|alt.badge.img+5

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


  • Freshman II
  • May 1, 2023
Vignesh Ponnusamy wrote:

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


Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • June 14, 2023

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


  • Freshman II
  • August 28, 2024

Hi @DavidMod how did you manage to accomplish the Acumatica - Zapier integration? I’d like to set it up to push deals from Hubspot to Acumatica but I can’t find much help to do this anywhere


  • Freshman I
  • November 17, 2024

Please can you provide a walk through for the zapier connection? Really interested in getting this working alongside the commerce connector.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings