Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

S2S authentication BC v20 - Error 500 API GET Request

Posted on by 10

Hi,

Up until May 1st we had been successfully been connecting via Qliks REST API connector using S2S authentication to obtained a token and pass this via the HTTP header into our GET requests but now no longer.  The error reports to be internal sever error code 500. 

We haven’t changed anything on our setup but I note our BC build appears to be v20 (unsure if we perhaps upgrades over the weekend or not, is there a way to tell?) but I see on the documention we used to set up S2S authentication that this only supports up to v18.3, is this the issue? The service we setup I noticed is no longer shown within the User page  on BC where as it was previously.

if it’s now no longer supported this posed a major risk to our ability to extract and report our data, when will v20 be supported and if not the cause, is there any other recommendations I try to resolve?

thanks 

  • hr_im Profile Picture
    hr_im 15 on at
    RE: S2S authentication BC v20 - Error 500 API GET Request

    Hi,

    MSFT suggested us today to add the "Accept-Encoding": "identity". That worked for us!

  • Suggested answer
    LMG_Dev Profile Picture
    LMG_Dev 10 on at
    RE: S2S authentication BC v20 - Error 500 API GET Request

    Update, i've been able to resolve our connection issue by adding the following HTTP Header Params:

    "Accept-Encoding" : "gzip, deflate"

    Now able to successfully query the API via Qlik REST Connector - unsure if something similar will work for the Retrofit Library as not familiar with it.

    pastedimage1652357313085v1.png

  • Jtomas Profile Picture
    Jtomas 5 on at
    RE: S2S authentication BC v20 - Error 500 API GET Request

    I have the same error with two customers.

    Regards

  • XavitoIM Profile Picture
    XavitoIM 5 on at
    RE: S2S authentication BC v20

    Hello,

    The same thing is happening to us too, with the Retrofit library on Android, in the new version V20

    We have 3 clients unable to use our APP because of this 500 error.

    Regards

  • hr_im Profile Picture
    hr_im 15 on at
    RE: S2S authentication BC v20

    Hi,

    We are experiencing the same issue since the upgrade to BC 20 (Internal Server Error on our API GET). We are using Java retrofit2 library, this library is still working with v19.5. We really don't know what changed since the last upgrade. There's no official docummentation on API changes from Microsoft!

    With Regards,

    Héctor

  • luisignaciog Profile Picture
    luisignaciog 25 on at
    RE: S2S authentication BC v20

    Same Issue with retrofit library. 

    With Android project use this library, any request with new version (V20) error 500.

    It's very strange because in postam works fine.

  • LMG_Dev Profile Picture
    LMG_Dev 10 on at
    RE: S2S authentication BC v20

    Hi,

    That's what we're still trying to figure out.  

    Support Ticket raised with Qlik but as yet no solution.

    We perform a POST requests to obtain our token - this still works, and the token returned is perfectly valid as we can then use the token within Postman, Power Automate (HTTP Request step) and Qliks equivalent, Application Automation (Call URL step).

    The REST connector however returns an 500 Internal Server Error as if the response is being blocked or not being sent.

    It's a bit of coincidence though that, we think, we updated to v20 (May 1st).

    Thanks

  • Suggested answer
    Marco Mels Profile Picture
    Marco Mels on at
    RE: S2S authentication BC v20

    Hello,

    In the admin portal of BC you can add a recipient that will receive notifications about upgrade schedules. It would be nice to know if there is a general failure or a change that did happen after the upgrade.

    Thank you.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans