Skip to main content
Question

REST API Requests Timing Out On Sandbox

  • Apr 28, 2023 1:55 PM UTC
  • 14 replies
  • 391 views
  • Translate All

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?

14 replies

RohitRattan88
Acumatica Moderator
Forum|alt.badge.img+5
  • Acumatica Moderator
  • Apr 28, 2023 2:18 PM UTC

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

Translate

  • Author
  • Freshman II
  • Apr 28, 2023 2:29 PM UTC

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

Translate

  • Author
  • Freshman II
  • Apr 28, 2023 2:47 PM UTC

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.

Translate

RohitRattan88
Acumatica Moderator
Forum|alt.badge.img+5
  • Acumatica Moderator
  • Apr 28, 2023 3:55 PM UTC

you mean when trying to login through UI?

Translate

  • Author
  • Freshman II
  • Apr 28, 2023 3:57 PM UTC

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

 

Translate

RohitRattan88
Acumatica Moderator
Forum|alt.badge.img+5
  • Acumatica Moderator
  • Apr 28, 2023 4:05 PM UTC

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?

Translate

  • Author
  • Freshman II
  • Apr 28, 2023 4:08 PM UTC

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

Translate

RohitRattan88
Acumatica Moderator
Forum|alt.badge.img+5
  • Acumatica Moderator
  • Apr 28, 2023 5:03 PM UTC

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

 

Translate

Forum|alt.badge.img
  • Freshman I
  • Apr 28, 2023 7:31 PM UTC

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

Translate

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,

Translate

  • Author
  • Freshman II
  • May 1, 2023 1:42 PM UTC

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

Translate

Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • Jun 14, 2023 8:54 PM UTC

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

Translate

  • Freshman II
  • Aug 28, 2024 9:29 PM UTC

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

Translate

  • Freshman I
  • Nov 17, 2024 5:04 PM UTC

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

Translate