You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to run OpenRefine in the background and communicate with it from my app through the OpenRefine API. So far, I followed instructions outlined here: OpenRefine API
I'm running Open Refine version 3.3, and attempted to upload my files through the API both from Postman and my Python App and got the response error 'Missing or invalid csrf_token parameter'. I also found another issue raised regarding the same problem, but it was already closed.
My postman request looks like this:
Expected Behavior
I would expect the request to upload my file(s) and create a new project, as described in the documentation.
Versions
Operating System: Mac OS X cataline
Browser Version: Safari 13
JRE or JDK Version: 13
OpenRefine: 3.3
The text was updated successfully, but these errors were encountered:
asyrul21
added
Type: Bug
Issues related to software defects or unexpected behavior, which require resolution.
Status: Pending Review
Indicates that the issue or pull request is awaiting review by project maintainers or collaborators
labels
Jul 18, 2020
Hi @asyrul21, you will need to retrieve a CSRF token before making the request with GET command/core/get-csrf-token.
See https://github.com/OpenRefine/OpenRefine/wiki/Changes-for-3.3#csrf-protection-changes for more details about this.
Because this is not a bug and working as intended, I will close this, but feel free to comment back if you need more info. In general, questions like this should go to the user or developer mailing lists.
wetneb
added
question
This is a question rather than a bug or enhancement request
and removed
Type: Bug
Issues related to software defects or unexpected behavior, which require resolution.
Status: Pending Review
Indicates that the issue or pull request is awaiting review by project maintainers or collaborators
labels
Jul 18, 2020
I've updated the wiki with a link to the CSRF docs and a warning that the API is internal-only and subject to change at any time (as you've just discovered).
Hi OpenRefine community,
I would like to run OpenRefine in the background and communicate with it from my app through the OpenRefine API. So far, I followed instructions outlined here: OpenRefine API
I'm running Open Refine version 3.3, and attempted to upload my files through the API both from Postman and my Python App and got the response error 'Missing or invalid csrf_token parameter'. I also found another issue raised regarding the same problem, but it was already closed.
My postman request looks like this:
Expected Behavior
I would expect the request to upload my file(s) and create a new project, as described in the documentation.
Versions
The text was updated successfully, but these errors were encountered: