Using plone,jsonapi.routes issue - returns 405

Hi all,

has anyone perhaps come across this error when using plone.jsonapi.routes? I was trying to create a basic Folder using the documented way here:

The result:

_runtime: 0.0005650520324707031,
message: "405: Method Not Allowed",
success: false,
error: "Traceback (most recent call last): File "/home/witek/dev/webtide/tellumat/tellumat437/buildout-cache/eggs/plone.jsonapi.core-0.5-py2.7.egg/plone/jsonapi/core/browser/", line 18, in decorator return f(*args, **kwargs) File "/home/witek/dev/webtide/tellumat/tellumat437/buildout-cache/eggs/plone.jsonapi.core-0.5-py2.7.egg/plone/jsonapi/core/browser/", line 59, in render return self.dispatch() File "/home/witek/dev/webtide/tellumat/tellumat437/buildout-cache/eggs/plone.jsonapi.core-0.5-py2.7.egg/plone/jsonapi/core/browser/", line 51, in dispatch if router.match(self.context, self.request, path): File "/home/witek/dev/webtide/tellumat/tellumat437/buildout-cache/eggs/plone.jsonapi.core-0.5-py2.7.egg/plone/jsonapi/core/browser/", line 102, in match endpoint, values = adapter.match(method=method) File "/home/witek/dev/webtide/tellumat/tellumat437/buildout-cache/eggs/Werkzeug-0.11.3-py2.7.egg/werkzeug/", line 1562, in match raise MethodNotAllowed(valid_methods=list(have_match_for)) MethodNotAllowed: 405: Method Not Allowed "


Forgot to mention: I'm using Plone 4.3.7

This is just an update in case someone stumbles upon this topic.

I have not tested this theory but I suspect that my issue was perhaps related to the csrf patch.

Plone’s CSRF protection works seamlessly on default Plone sites. However, it can be overly aggressive if you are using addons or customizations that include the following:
code that is not CSRF protected
custom non-jQuery AJAX JavaScript code that is not CSRF protected
code that does write-on-read
Once the patch has been applied, Plone may throw errors when it encounters the above.

It could also be due to using a GET instead of a POST method.

Sorry, I wasn't clear in my original post, I used the CREATE route as specified: