question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

base_url doesn't seem to work when adding criteria and clicking "apply"

See original GitHub issue

Over on Apache Tika, we’re using datasette to allow users to make sense of the metadata for our file regression testing corpus.

This could be user error in how I’ve set up the reverse proxy!

I started datasette like so: docker run -d -p 8001:8001 -v pwd:/mnt datasetteproject/datasette datasette -p 8001 -h 0.0.0.0 /mnt/corpora-metadata.db --config sql_time_limit_ms:60000 --config base_url:/datasette/

I then reverse proxied like so:

ProxyPreserveHost On ProxyPass /datasette http://x.y.z.q:xxxx ProxyPassReverse /datasette http://x.y.z.q:xxx

Regular sql works perfectly: https://corpora.tika.apache.org/datasette/corpora-metadata?sql=select+mime_string%2C+count(1)+as+cnt from+profiles+p join+mimes+m+on+p.mime_id%3Dm.mime_id group+by+mime_string order+by+cnt+desc

However, adding criteria and clicking ‘Apply’ https://corpora.tika.apache.org/datasette/corpora-metadata/tika_1_24_1_mimes?_sort=file&mime__exact=text%2Fplain

bounces back to: https://corpora.tika.apache.org/corpora-metadata/tika_1_24_1_mimes?_sort=file&file__contains=bug&mime__exact=text%2Fplain

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
simonwcommented, Nov 12, 2020

@tballison thanks, I’ve split that out into a new issue #1091

1reaction
simonwcommented, Oct 15, 2020

It looks like there are places where Datasette might return a redirect that doesn’t take base_url into account - I’m planning on fixing those here, after which I think ProxyPassReverse should no longer be necessary. https://github.com/simonw/datasette/issues/1025#issuecomment-709632136

Read more comments on GitHub >

github_iconTop Results From Across the Web

Baseurl not working · Issue #2170 · Ombi-app/Ombi - GitHub
If I use the base --baseurl /path ombi it does not seem to be used by ombi. when i enter the url with...
Read more >
base_url() function not working in codeigniter - Stack Overflow
I am trying to use base_url() function but it shows empty results. I have also used autoload helper through autoload file, but then...
Read more >
Stuck: understanding frontendurl/baseurl, and configuring ...
Hi, in my custom user registration theme I use baseUrl to “Back to login”, but after clicking this URL, the user is redirected...
Read more >
Secret tricks for path-independent Angular apps - Symflower
Looking for some tips and tricks for your path-independent Angular app? Look no further.
Read more >
CLI Book 3: Cisco ASA Series VPN CLI Configuration Guide, 9.7
ASA does not work with Duo in a deployment using an internal SAML, ... When base-url is configured, we use it as the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found