-
Notifications
You must be signed in to change notification settings - Fork 116
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
3.0.0-RC1 - Receive "400 Looks like you're sending JSON data, but you haven't specified a content type. Aborting request." on POST attempt from Dashboard. #232
Comments
Not sure if this is related to #176 |
Hi Damon. What version were you using prior to updating to 3.0.0-RC1? |
If this only happens from the dashboard, I'm guessing this is actually more closely related to the changes I made for #163 |
I was on 2.2.4 previously. |
Can you share a sample URI and the request data you're sending, so that I can get a good test going for debugging? |
Sure. I have commented out my entire onTaffyRequest method and receive the same error so I don't believe anything I have in there is causing this. I did dump the requestObj.contentType variable just before the Let me know if you need additional information. Thanks |
I should add, this is ColdFusion 8.0.1. |
Thanks for the context. I'll get back to you when I know more. |
This is because Taffy now supports multiple mime types per data format, and out of the box it supports both
This sounds like the culprit. There may be some CF8 incompatibility with the way supported formats are initialized now. |
I don't have CF8 handy any more. Would you be available for a G+ Hangout session so we can debug on your computer together? You can email me at adam@fusiongrokker.com to set up a time, if you like. |
Line 836 in api.cfc, the _recurse_getSupportedContentTypes() function. This line: Needs to be:
This addresses the issue in CF8. |
Nice find! Guess we don't need that meeting, then? Do you want to submit a pull request so your name can be immortalized in the commit logs for eternity? If you don't want to be bothered, I can obviously handle it pretty quickly. |
Go for it! I don't have the latest code in my fork and don't really have On Tue, Sep 30, 2014 at 1:11 PM, Adam Tuttle notifications@github.com
|
I am now experiencing an error from the Dasboard on POST "400 Looks like you're sending JSON data, but you haven't specified a content type. Aborting request." since updating to 3.0.0-RC1. The same exact code worked fine under 2.2.4. I have taken all of my code out of onTaffyRequest and still get this issue.
I took a look at the code in api.cfc and I see this block:
And I see that the contentTypeIsSupported() is new to this version. I haven't really had time to wrap my head around what this is doing so I don't have a suggestion on the issue here.
The text was updated successfully, but these errors were encountered: