-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
InvalidContentTypeError on attempting PATCH: application/vnd.api+json #8029
Comments
Additional note: this was found when using ember-cli-update to update everything to 3.4.0. Since, after encountering this issue, I could not find the usual Release Notes blogpost over at emberjs.com, I reverted everything I could, which left me with the issue, caused by the fact that ember-cli is the only item in package.json that is allowed to update minor versions. The above shown version switching was done by alternating between "3.3.0" and "^3.3.0" in my package.json. If required, I may post logs after a full upgrade, but they are just more verbose due to additional linting. |
My POST to my authenticate rest end-point is also failing. Unsure where the actual problem is. It appears as if the body of the post is all zeros. Switching only from ember-cli 3.3.0 to 3.4.1 (in the package.json) causes my issue. While not the same, it does seems similar. Proxying seems to be messing up something in the request |
I have the exact same problem with the built in proxy, but with POST requests as well. |
Just to give an update on this isuse, the problem is in the live reload implementation.
|
I can confirm this works on my project with ember-cli 3.4.1. |
Awesome, thank you! |
Confirming the --no-live-reload is a temporary fix for my problem as well. |
Fixed by #8038 and released in v3.4.2. |
Fixed indeed. Thank you very much! |
When upgrading from ember-cli@3.3.0 to 3.4.0, issuing
ember serve --proxy
returns InvalidContentTypeError every time I attempt to PATCH to the proxyed API. The initial GET appears to work fine. Since I have a working environment, I will proceed now to paste both working and broken outputs from specified commands and theember serve
output.Working
Output from
ember version --verbose && npm --version && yarn --version
:Broken
This is shown in Firefox's console:
The text was updated successfully, but these errors were encountered: