Skip to content
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

Persist Accept headers to enable testing of the Biocache Service /ws/webportal/legend web service #1

Open
ansell opened this issue Jun 8, 2018 · 0 comments

Comments

@ansell
Copy link
Contributor

ansell commented Jun 8, 2018

If we persist Accept headers in log files, we could start to successfully test the Biocache Service legend web service that requires the header to be present to successfully complete the query:

=========================
HTTP request:
GET https://biocache-clustered.ala.org.au/ws/webportal/legend?&pageSize=1000000&q=qid:1523854344778&cm=occurrence_year%2C*%2C1972-12-31T00%3A00%3A00Z%2C1973-01-01T00%3A00%3A00Z%2C1986-12-31T00%3A00%3A00Z%2C1987-01-01T00%3A00%3A00Z%2C1997-12-31T00%3A00%3A00Z%2C1998-01-01T00%3A00%3A00Z%2C2000-12-31T00%3A00%3A00Z%2C2001-01-01T00%3A00%3A00Z%2C2001-12-31T00%3A00%3A00Z%2C2002-01-01T00%3A00%3A00Z%2C2002-12-31T00%3A00%3A00Z%2C2003-01-01T00%3A00%3A00Z%2C2003-12-31T00%3A00%3A00Z%2C2004-01-01T00%3A00%3A00Z%2C2005-12-31T00%3A00%3A00Z%2C2006-01-01T00%3A00%3A00Z%2C2009-12-31T00%3A00%3A00Z%2C2010-01-01T00%3A00%3A00Z%2C2017-12-31T00%3A00%3A00Z
headers=
Host: biocache-clustered.ala.org.au
Accept: */*
=========================
HTTP response:
status=
406 Not Acceptable
headers= 
Date: Fri, 08 Jun 2018 05:04:21 GMT
Content-Type: text/html;charset=utf-8
Content-Length: 1231
Connection: keep-alive
Set-Cookie: AWSALB=REDACTED 05:04:21 GMT; Path=/
Server: nginx/1.10.3 (Ubuntu)
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: POST, GET, OPTIONS, DELETE
Access-Control-Max-Age: 3600
Access-Control-Allow-Headers: x-requested-with
Content-Language: en
Strict-Transport-Security: max-age=3600
Referrer-Policy: strict-origin-when-cross-origin

body=
<html><head><title>Apache Tomcat/7.0.68 (Ubuntu) - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 406 - Unable to produce a legend in the supplied &quot;Accept&quot; format: */*</h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u>Unable to produce a legend in the supplied &quot;Accept&quot; format: */*</u></p><p><b>description</b> <u>The resource identified by this request is only capable of generating responses with characteristics not acceptable according to the request "accept" headers.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/7.0.68 (Ubuntu)</h3></body></html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant