linkeddata / rdflib.js

Linked Data API for JavaScript
http://linkeddata.github.io/rdflib.js/doc/
Other
561 stars 142 forks source link

Logging into inrupt.net gives "" alert and fails #639

Closed timbl closed 3 months ago

timbl commented 4 months ago

I try to log into inrupt.net with my inrupt.net id and I get an alert Subject is not a subject type

Looking at the code which throws it it it seems to be the code which adds and "outOfDate triple to the store, `` kb.add(response, this.ns.link('outOfDate'), true as any, meta)


suggesting `response` is nill 
timbl commented 4 months ago
Screenshot 2024-02-27 at 21 19 01
timbl commented 4 months ago

Looks like the test for undefined should (also?) test for null at https://github.com/linkeddata/rdflib.js/blob/main/src/update-manager.ts#L98

angelo-v commented 4 months ago

I am getting the same error when logging out

angelo-v commented 4 months ago

I am only experiencing it in Chrome, where I got some new CORS issues. The response might be null due to CORS blocking.

bourgeoa commented 4 months ago

I only got this issue with webID URL with fragment. Is it your case ?