Comments (11)
@mvolz thanks for the pointers. I will try to get this solved today.
from openrefine-wikibase.
Same issue :). Basically any browser-side script (i.e. gadgets) on Wikidata/Wikipedia won't be able to access the service because it's blocked.
Error is:
No 'Access-Control-Allow-Origin' header is present on the requested resource.
I briefly googled and found a gist of how to enable CORS for Bottle; maybe useful? https://gist.github.com/richard-flosi/3789163
from openrefine-wikibase.
@mvolz @jaygray0919 I have deployed the fix, let me know if there are still issues on your side.
from openrefine-wikibase.
Works beautifully, thank you so much! 🥇
from openrefine-wikibase.
Feature request duly noted! PRs on this would be very welcome.
from openrefine-wikibase.
https://pypi.org/project/bottle-cors/ maybe better
from openrefine-wikibase.
I do get this error, but it does load :).
load.php?debug=false&lang=en&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets|mw.config.values.wbSiteDetails|oojs-ui.styles.icons-editing-advanced&skin=vector&version=1w1t5tj:130 [Report Only] Refused to connect to 'https://tools.wmflabs.org/openrefine-wikidata/en/api?query=%7B%22query%22%3A%22PLoS%20Computational%20Biology%22%2C%22limit%22%3A1%2C%22type%22%3Anull%2C%22type_strict%22%3A%22any%22%7D' because it violates the following Content Security Policy directive: "default-src 'self' data: blob: upload.wikimedia.org https://commons.wikimedia.org meta.wikimedia.org *.wikimedia.org *.wikipedia.org *.wikinews.org *.wiktionary.org *.wikibooks.org *.wikiversity.org *.wikisource.org wikisource.org *.wikiquote.org *.wikidata.org *.wikivoyage.org *.mediawiki.org wikimedia.org". Note that 'connect-src' was not explicitly set, so 'default-src' is used as a fallback
from openrefine-wikibase.
@mvolz interesting… I don't know much about CORS so correct me if I am wrong but it seems that the problem comes from a policy from the source website (mediawiki) rather than from the behaviour of the reconciliation service itself?
from openrefine-wikibase.
Me neither, who knows! Probably a problem on my end.
from openrefine-wikibase.
we're seeing:
XHR status: 200
XHR status text: OK
XHR exposed response headers:
content-type: application/json
will test with more data later
thanks for the progress
from openrefine-wikibase.
For some reason the access header isn't there for error messages.
Not a big deal as it's not like it's supposed to give you data anyway, but inconsistent I guess.
Example url with error that causes it: https://tools.wmflabs.org/openrefine-wikidata/en/api?query=%2210.1371%2Fjournal.pcbi.1002947%22
from openrefine-wikibase.
Related Issues (20)
- Document deployment with gunicorn HOT 1
- app uses debug mode in production HOT 3
- Allow exclusion of classes/types from the reconciliation process HOT 1
- Exception caught: java.lang.NullPointerException HOT 10
- Add custom wikibase from WBstack HOT 1
- Some items are not found by reconciliation ... maybe due to a large number of similar items? HOT 2
- Reconcilation fails when specifying type work (Q386724) - sometimes giving 502 response HOT 10
- Differences in results returned with suggest.py and wbsearchentities HOT 2
- "Only the best rank" in "Add columns from reconciled columns" should not output deprecated values
- failed-save error when creating new items on Wikidata HOT 1
- Data extension: sitelinks (Wikidata) are sometimes not shown/extracted, while they do exist
- Occasional error messages in hover popup for Wikidata reconciliation suggestions HOT 1
- Latest Jinja causing Docker build to fail. HOT 2
- Custom manifest and IRI url HOT 1
- Problem setting up service with docker compose HOT 7
- Wikidata reconciliation query/scores when multiple variable on same property and date precision HOT 19
- Should empty properties scores to 0? HOT 4
- Curious response to property proposal request
- Property values being cached for longer than they should HOT 2
- This repository has migrated!
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openrefine-wikibase.