Lorenzo
03/17/2025, 2:41 PMInvalid language. REST web services currently only support the default company language, and do not support the language specified in your user preferences. Provide the Content-Language header with your default company language value \'es\'
I tried adding the header (so I now have this:
'Content-Type': 'application/json', 'Accept': 'application/json', 'Content-Language': 'es'
And now I get a 500 error instead.
Why does the rest api break based on language configuration?Celigo AI
03/17/2025, 2:41 PMAI generated answer (using internal Slack threads):Based on the conversations, it seems that the REST API integration breaks when the default language is changed because the REST web services currently only support the default company language. They do not support the language specified in your user preferences. When you changed the 'Content-Language' header to 'es' (Spanish), it seems that the system was not able to handle the request properly, hence the 500 error. This error is a generic "Internal Server Error" and doesn't provide specific information about what went wrong. It's important to note that changing the default language can have various impacts on the system, including affecting the names in the UI, in workflows, saved searches, and also through ODBC. As a workaround, you could try changing the user preference (Home icon->Set Preferences, Localisation->Language) to English (International) or English (US). However, this requires the Multi-Language preference (Setup->Company->Enable Features->Company->International->Multi-Language) to be enabled. Be aware of potential side effects and date format issues. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Celigo AI
03/17/2025, 2:41 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.810496628
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.807854056
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.805043638
Celigo AI
03/17/2025, 2:41 PM