Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Unanswered

Java RestTemplate issue with CRM API starting Feb 27, 2023

(0) ShareShare
ReportReport
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

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans