-
Notifications
You must be signed in to change notification settings - Fork 8
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
Allow localhost files behind a flag #22
Comments
Maybe the server does not work with more recent EYE versions, that would be an easy explanation. |
Here on my laptop plus WSL 2 (Windows Subsystem for Linux) EyeServer still runs fine with the latest
|
Thanks Jos!
I am having success as you depicted below with uris pointing to external
resources on the web.
Uris to files on a web server hosted on the same machine as the eye server
seem to be the issue.
…On Thu, Apr 14, 2022 at 8:15 AM, Jos De Roo ***@***.***> wrote:
Here on my laptop plus WSL 2 (Windows Subsystem for Linux) EyeServer still
runs fine with the latest EYE v22.0409.1317
$ eyeserver 8000
EYE server running on http://localhost:8000
$ curl "http://localhost:8000/?data=http://eulersharp.sourceforge.net/2003/03swap/socrates.n3&query=http://eulersharp.sourceforge.net/2003/03swap/socratesF.n3"
@Prefix log: <http://www.w3.org/2000/10/swap/log#>.
@Prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
@Prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
@Prefix : <http://www.agfa.com/w3c/euler/socrates#>.
@Prefix q: <http://www.w3.org/2004/ql#>.
:Socrates a :Man.
:Socrates a :Mortal.
$ curl "http://localhost:8000/?data=https://n3.restdesc.org/n3/friends.n3&data=https://n3.restdesc.org/n3/knows-rule.n3&query=https://n3.restdesc.org
/n3/query-all.n3"
@Prefix ppl: <http://example.org/people#>.
@Prefix foaf: <http://xmlns.com/foaf/0.1/>.
ppl:Cindy foaf:knows ppl:John.
ppl:Cindy foaf:knows ppl:Eliza.
ppl:Cindy foaf:knows ppl:Kate.
ppl:Eliza foaf:knows ppl:John.
ppl:Peter foaf:knows ppl:John.
ppl:John foaf:knows ppl:Cindy.
ppl:Eliza foaf:knows ppl:Cindy.
ppl:Kate foaf:knows ppl:Cindy.
ppl:John foaf:knows ppl:Eliza.
ppl:John foaf:knows ppl:Peter.
—
Reply to this email directly, view it on GitHub
<#22 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AO3YXTE6KKIMCCOGVNX7A43VFAD5BANCNFSM5TLREVNA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
@MartyStache are you using Docker or some kind of virtualization to run EyeServer? |
Nothing that fancy...
on Mac M1 Monterey...running eye server local on port 8000 and web server
for files local on port 80:
[image: image.png]
…On Thu, Apr 14, 2022 at 9:52 AM Boris De Vloed ***@***.***> wrote:
@MartyStache <https://github.com/MartyStache> are you using Docker or
some kind of virtualization to run EyeServer?
This would explain why localhost for node (i.e. EyeServer) doesn't map to
the same as localhost as your cli.
—
Reply to this email directly, view it on GitHub
<#22 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AO3YXTF7UI4BJLKQL5PAQE3VFAPJFANCNFSM5TLREVNA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Tried the same here and there is indeed an issue:
but via eyeserver nothing comes back
@RubenVerborgh any idea? |
Oh yes, we are very likely deliberately blocking |
Yeah we are: https://github.com/RubenVerborgh/EyeServer/blob/36b3e87fd263af122c8af6ab54ea681eeaab6734/lib/eye.js#L93 Can make this into a flag. |
That would be a nice option indeed! |
awesome! thanks! great for debugging! |
Hola!
I am sure it is something really simple I am missing. I want to use the api but cannot get it to work as designed with local web server files (port 80). Here are some images that depict what I am experiencing. I'm on an M1 Mac Mini (Monterey) if that makes any difference.
First, I try the sample post provided on the github repo home page in postman (which works!):
Then I create a local web server (on port 80), files are accessible by a browser without specifying port:
Then I try the same post, except this time I point to the files on the local web server:
Then I tried the same post in a Notebook in Visual Studio with Python requests object:
Lastly, (what did work!!!) I gave the eye CLI the same arguments (local web server addresses) to the files and it worked!!
Any guidance on how to get this working as intended would be greatly appreciated!
Thanks!
The text was updated successfully, but these errors were encountered: