Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM forum
Unanswered

Java RestTemplate issue with CRM API starting Feb 27, 2023

Posted on by 20

Hi,

We have a microservice written in Java Spring boot and we are using RestTemplate with custom interceptor that adds "Accept-Encoding=gzip, deflate, br" in the request headers. This code is working perfectly when we are retrieving entities using Dynamics CRM API 8.x or 9.x. This code has been in production since 2020, but recently last February 27, 2023, approximately this week, we started receiving error when performing the same query using the same code base. The following error is (see below)

JSON parse error: Illegal character ((CTRL-CHAR, code 27)): only regular white space (\r, \n, \t) is allowed between tokens

My assumption is that recently there was an update in Dynamics CRM 365 online in the API that automatically implements compression on the response, and thus this additional interceptor tries to compress the data again. But we would like to inquire if this assumption is correct and what specific update has been implemented by Microsoft on this.

Please advise. 

  • Benjsoft Profile Picture
    Benjsoft 20 on at
    RE: Java RestTemplate issue with CRM API starting Feb 27, 2023

    By the way, our quick solution is either remove the interceptor in the code for the RestTemplate, or replace the value "Accept-Encoding=identity"

    stackoverflow.com/.../jackson-error-illegal-character-only-regular-white-space-allowed-when-parsi

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,532 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,501 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans