Pelagios Widget not working

23 views
Skip to first unread message

Jessica Ogden

unread,
Dec 13, 2013, 8:05:36 AM12/13/13
to pelagios...@googlegroups.com, Fasti Support
Hi there -

I noticed a while back that our Pelagios widget isn't working any more on Fasti and have finally sat down to take a look. It doesn't seem to be working on the widget demo either at (http://pelagios.github.io/pelagios-widgets/) and getting the same response: "Error: Pleiades not responding We cannot display the name and map at the moment because the Pleiades website is not responding.."

I'm getting a '405 Method not allowed' on the response to the json POST - any ideas?

Thanks in advance for any insight..

Best wishes,
Jess

--
Jessica Ogden BA, MSc
Digital Consultant, Geophysical Specialist
Tel: 020 7770 6045
The Old Truman Brewery, 91 Brick Lane, London E1 6QL
Chester: 01244 313 100  East of England: 01284 754 859 Marches: 01938 559 610

          WWW.LPARCHAEOLOGY.COM
IfA Registered Archaeological Organisation
***************************************************
L - P : Archaeology is the trading name of L - P : Heritage LLP  Registered in England and Wales OC366545
Registered office address: Amelia House, Crescent Road, Worthing, BN11 1QR

Simon Rainer

unread,
Dec 13, 2013, 8:20:10 AM12/13/13
to pelagios...@googlegroups.com, Fasti Support, Tom Elliott (tom.elliott@nyu.edu)

Hi Jess,

 

hm – I’m seeing the following error message:

 

XMLHttpRequest cannot load http://pleiades.stoa.org/places/579885/json. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://pelagios.github.io' is therefore not allowed access.

 

which means cross-origin (CORS) requests are no longer possible on the Pleiades server.

 

@Tom: do you have any time to look into the issue? Seems that the CORS server setting (i.e. the header additional “Access-Control-Allow-Origin” response header,  set to “*”) that used to be there has gone lost :-(

 

Cheers & thanks,

Rainer

--
You received this message because you are subscribed to the Google Groups "pelagios" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pelagios-proje...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Tom Elliott

unread,
Dec 13, 2013, 9:40:29 AM12/13/13
to Simon Rainer, pelagios...@googlegroups.com, Fasti Support
All:

I’ll put it on the list (things are a bit stretched at the moment, I’m afraid). It certainly was not removed intentionally (I was unaware it existed); it must have been an inadvertent casualty of my battles against bots that were taking down our site. 

Tom

Tom Elliott, Ph.D.
Associate Director for Digital Programs and Senior Research Scholar
Institute for the Study of the Ancient World (NYU)
http://isaw.nyu.edu/people/staff/tom-elliott


Jessica Ogden

unread,
Dec 13, 2013, 9:52:51 AM12/13/13
to Tom Elliott, Simon Rainer, pelagios...@googlegroups.com, Fasti Support
Thanks all. No problem Tom - thanks for looking into this!

Best wishes,
Jess

Tom Elliott

unread,
Dec 13, 2013, 9:56:20 AM12/13/13
to Simon Rainer, pelagios...@googlegroups.com, Fasti Support
Rainer:

I think the error message you’re seeing may be masking a different issue. I am seeing Access-Control-Allow-Origin: * in response to a request for the URL you mentioned. Viz:

dark-star:Downloads paregorios$ curl -I http://pleiades.stoa.org/places/579885/json
HTTP/1.1 200 OK
Date: Fri, 13 Dec 2013 14:52:20 GMT
Server: nginx/1.0.15
Content-Type: application/json
Access-Control-Allow-Origin: *
Content-Length: 4507
X-Varnish: 1566988539
Age: 0
Via: 1.1 varnish
Cache-Control: max-age=86400, s-maxage=11988
Expires: Sat, 14 Dec 2013 14:52:18 GMT

Can you send me a dump of the full request, with headers, that’s throwing the error on your end? I may be inadvertently blocking you as a bot; we serve a 403 to requests for json resources that we think are coming from search bots and bad actors. We may need to tweak the rules to let pelagios traffic through.

Sorry for the hassle.

Thanks,
Tom

Tom Elliott, Ph.D.
Associate Director for Digital Programs and Senior Research Scholar
Institute for the Study of the Ancient World (NYU)
http://isaw.nyu.edu/people/staff/tom-elliott



On Dec 13, 2013, at 7:20 AM, Simon Rainer <Rainer...@ait.ac.at> wrote:

Simon Rainer

unread,
Dec 13, 2013, 10:04:15 AM12/13/13
to Tom Elliott, pelagios...@googlegroups.com, Fasti Support
Hi Tom,

Indeed - if I just visit the URL with my browser, I'm getting the JSON just fine, with Access-Control-Allow-Origin:*. So this sounds as if we fall into the bot-blocking rule. The request sent by the Widget sample page is this:

Request URL:http://pleiades.stoa.org/places/579885/json

Request Headers
POST http://pleiades.stoa.org/places/579885/json HTTP/1.1
Accept: application/json, text/javascript, */*; q=0.01
Referer: http://pelagios.github.io/pelagios-widgets/
Origin: http://pelagios.github.io
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36

Cheers,
Rainer


________________________________________
Von: Tom Elliott [tom.e...@nyu.edu]
Gesendet: Freitag, 13. Dezember 2013 15:56
An: Simon Rainer
Cc: pelagios...@googlegroups.com; Fasti Support
Betreff: Re: [pelagios] Pelagios Widget not working

Rainer:

I think the error message you’re seeing may be masking a different issue. I am seeing Access-Control-Allow-Origin: * in response to a request for the URL you mentioned. Viz:

dark-star:Downloads paregorios$ curl -I http://pleiades.stoa.org/places/579885/json
HTTP/1.1 200 OK
Date: Fri, 13 Dec 2013 14:52:20 GMT
Server: nginx/1.0.15
Content-Type: application/json
Access-Control-Allow-Origin: *
Content-Length: 4507
X-Varnish: 1566988539
Age: 0
Via: 1.1 varnish
Via: 1.1 pleiades.stoa.org<http://pleiades.stoa.org>
Cache-Control: max-age=86400, s-maxage=11988
Expires: Sat, 14 Dec 2013 14:52:18 GMT

Can you send me a dump of the full request, with headers, that’s throwing the error on your end? I may be inadvertently blocking you as a bot; we serve a 403 to requests for json resources that we think are coming from search bots and bad actors. We may need to tweak the rules to let pelagios traffic through.

Sorry for the hassle.

Thanks,
Tom

Tom Elliott, Ph.D.
Associate Director for Digital Programs and Senior Research Scholar
Institute for the Study of the Ancient World (NYU)
http://isaw.nyu.edu/people/staff/tom-elliott



On Dec 13, 2013, at 7:20 AM, Simon Rainer <Rainer...@ait.ac.at<mailto:Rainer...@ait.ac.at>> wrote:

Hi Jess,

hm – I’m seeing the following error message:

XMLHttpRequest cannot load http://pleiades.stoa.org/places/579885/json. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://pelagios.github.io<http://pelagios.github.io/>' is therefore not allowed access.

which means cross-origin (CORS) requests are no longer possible on the Pleiades server.

@Tom: do you have any time to look into the issue? Seems that the CORS server setting (i.e. the header additional “Access-Control-Allow-Origin” response header, set to “*”) that used to be there has gone lost :-(

Cheers & thanks,
Rainer




Von: pelagios...@googlegroups.com<mailto:pelagios...@googlegroups.com> [mailto:pelagios...@googlegroups.com<mailto:pro...@googlegroups.com>] Im Auftrag von Jessica Ogden
Gesendet: Freitag, 13. Dezember 2013 14:06
An: pelagios...@googlegroups.com<mailto:pelagios...@googlegroups.com>
Cc: Fasti Support
Betreff: [pelagios] Pelagios Widget not working

Hi there -

I noticed a while back that our Pelagios widget isn't working any more on Fasti and have finally sat down to take a look. It doesn't seem to be working on the widget demo either at (http://pelagios.github.io/pelagios-widgets/) and getting the same response: "Error: Pleiades not responding We cannot display the name and map at the moment because the Pleiades website is not responding.."

I'm getting a '405 Method not allowed' on the response to the json POST - any ideas?

Thanks in advance for any insight..

Best wishes,
Jess

--
Jessica Ogden BA, MSc
j.o...@lparchaeology.com<mailto:j.o...@lparchaeology.com>
Digital Consultant, Geophysical Specialist
Tel: 020 7770 6045
The Old Truman Brewery, 91 Brick Lane, London E1 6QL
Chester: 01244 313 100 East of England: 01284 754 859 Marches: 01938 559 610

WWW.LPARCHAEOLOGY.COM<http://www.lparchaeology.com/>
IfA Registered Archaeological Organisation
***************************************************
L - P : Archaeology is the trading name of L - P : Heritage LLP Registered in England and Wales OC366545
Registered office address: Amelia House, Crescent Road, Worthing, BN11 1QR
--
You received this message because you are subscribed to the Google Groups "pelagios" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pelagios-proje...@googlegroups.com<mailto:pelagios-proje...@googlegroups.com>.

Tom Elliott

unread,
Dec 13, 2013, 10:11:11 AM12/13/13
to pelagios...@googlegroups.com, Fasti Support
Ah, can you not use GET? We don’t allow POST against json URIs.

RewriteCond %{REQUEST_METHOD} POST
RewriteRule ^/places/\d+/json$ - [L,R=405]

Tom Elliott, Ph.D.
Associate Director for Digital Programs and Senior Research Scholar
Institute for the Study of the Ancient World (NYU)
http://isaw.nyu.edu/people/staff/tom-elliott



> To unsubscribe from this group and stop receiving emails from it, send an email to pelagios-proje...@googlegroups.com.

Simon Rainer

unread,
Dec 13, 2013, 10:21:07 AM12/13/13
to pelagios...@googlegroups.com, Fasti Support
Ouch - hm. I dug through the code and think I found the bit that makes the request.

@Juliette: are you still on this list? If so, it's probably quickest if you can take a look. (I assume it's this one: https://github.com/pelagios/pelagios-widgets/blob/master/src/app/util.js#L37-41, but may be wrong.) If you don't have time: any hints on what I need to do to build a release after fixing the code? :-)

Cheers,
Rainer




-----Ursprüngliche Nachricht-----
Von: pelagios...@googlegroups.com [mailto:pelagios...@googlegroups.com] Im Auftrag von Tom Elliott
Gesendet: Freitag, 13. Dezember 2013 16:11
An: pelagios...@googlegroups.com
Cc: Fasti Support
> hm - I'm seeing the following error message:

Juliette.Culver

unread,
Dec 16, 2013, 10:39:53 AM12/16/13
to pelagios...@googlegroups.com
Only just seen this - I'm on maternity leave at the moment with my hands full with a baby and toddler!

Rainer - I'll send you some instructions for building a release when I get the chance.

Juliette
________________________________________
From: Simon Rainer [Rainer...@ait.ac.at]
Sent: Friday, December 13, 2013 3:21 PM
To: pelagios...@googlegroups.com
Cc: Fasti Support
Subject: AW: [pelagios] Pelagios Widget not working
-- The Open University is incorporated by Royal Charter (RC 000391), an exempt charity in England & Wales and a charity registered in Scotland (SC 038302).
Reply all
Reply to author
Forward
0 new messages