-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
teamsApp/publishAppPackage fails with BadRequest for some localizations #12358
Comments
Thank you for contacting us! Any issue or feedback from you is quite important to us. We will do our best to fully respond to your issue as soon as possible. Sometimes additional investigations may be needed, we will usually get back to you within 2 days by adding comments to this issue. Please stay tuned. |
Based on the status code and API name in error message, this issue is duplicated with #10316. You can refer to it for more information. |
I narrowed it down to the following locales:
Updated original post. |
@alexanderbob Thank you for reporting the issue. We are currently working on resolving it. |
As discussed in Teams, the API endpoint correctly counts the characters. We will improve the error message for localization files' json schema validation. |
Describe the bug
Running provisioning fails at the teamsApp/publishAppPackage stage with the following message:
Error: Unable to make API call to Developer Portal: Error, BadRequest, API name: publish-app, X-Correlation-ID: cc2f521b-b7f7-4cf2-adf1-ad5612c92192. This may be due to a temporary service error. Try again after a few minutes. data: {"error":{"code":"BadRequest","message":"BadRequest","innerError":{"code":"BadRequest","date":"2024-09-09T20:42:30","request-id":"90d35443-509f-41d9-81b9-4c789f2aebec","client-request-id":"90d35443-509f-41d9-81b9-4c789f2aebec"}}}
With trial and error, we narrowed this issue down to the length of localization properties.
For example, with manifest like the one below:
And
pl-PL.json
file contents as the following:Provisioning fails with the error above.
Howver, shortening
name.short
string solves the issue:Schema file declares that max length for
name.short
is 30 characters:However, all 3 strings for
name.short
property on lines 1-3 are causing provisioning to fail. Removing "Copilot" to shorten the string value (lines 6-8) solves the issue.Looks like API endpoint incorrectly counts length for multi-symbol unicode characters, because all 3 are no longer than 30 characters, but caret position is at 33/31 symbol.
Microsoft Visual Studio Enterprise 2022
Version 17.11.2
VisualStudio.17.Release/17.11.2+35222.181
The text was updated successfully, but these errors were encountered: