statgen / locuszoom-api

Flask server code for LocusZoom APIs
https://portaldev.sph.umich.edu/docs/api/v1/
1 stars 3 forks source link

Request URL incorrect in exception JSON #17

Closed welchr closed 6 years ago

welchr commented 6 years ago

Need to get the full forwarded URL as seen by apache, request.url doesn't know whether we are using /api or /api_internal_dev.

Example:

http://portaldev.sph.umich.edu/api/v1/pair/LD/results/?filter=reference+eq+1+and+chromosome2+eq+%273%27+and+position2+ge+126888598+and+position2+le+127088598+and+variant1+eq+%273%3A126988598-127034009_PLXNA1%27&fields=chr%2Cpos%2Crsquare

Message returned is:

{
  "message": "An exception was thrown while handling the request. If you believe this request should have succeeded, please create an issue: https://github.com/statgen/locuszoom-api/issues", 
  "request": "http://portaldev.sph.umich.edu/v1/pair/LD/results/?filter=reference+eq+1+and+chromosome2+eq+'3'+and+position2+ge+126888598+and+position2+le+127088598+and+variant1+eq+'3%3A126988598-127034009_PLXNA1'&fields=chr%2Cpos%2Crsquare"
}