Skip to main content
Solved

Empty 200 response from API's while using OAuth2

  • 28 February 2022
  • 2 replies
  • 316 views

Hi, 
I am trying to make API calls with O Auth 2 Authentication but facing some issues, previously I used Authentication based on Cookie. So I followed the steps to create an O Auth 2 connection, create a client id, client secret with O Auth 2 Flow as ‘Resource Owner Password Credentials. The Bearer token is getting generated when I hit this access token URL “/identity/connect/token”. The issue is whenever I make an API call with the generated token I get a 200 response with No data (image attached).

 

 

First I got a response something like this :
<script>
    window.open("/Main","_top");
</script>
So I passed the Accept and Content-Type in the header and then started getting an empty response. 
(Note: A bulk import is happening from Acumatica using APIs, so is this because of API usage limits? I am not sure about this)
I'm new to this system and wonder if I'm missing something. 

Thanks

 

Best answer by Nayan Mansinha

RanjithKumar wrote:


(Note: A bulk import is happening from Acumatica using APIs, so is this because of API usage limits?

 

I don't think it is because of API usage as you are getting status code of 200 OK. Check in Request Profiler and see if anything shows up there that might give some clue.

View original
Did this topic help you find an answer to your question?

2 replies

Nayan Mansinha
Community Manager
Forum|alt.badge.img+2
  • Acumatica Developer Support
  • 49 replies
  • Answer
  • March 3, 2022
RanjithKumar wrote:


(Note: A bulk import is happening from Acumatica using APIs, so is this because of API usage limits?

 

I don't think it is because of API usage as you are getting status code of 200 OK. Check in Request Profiler and see if anything shows up there that might give some clue.


Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • 2679 replies
  • April 25, 2022

Hi @RanjithKumar  were you ever able to resolve your issue? Thank you!


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