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

Openstreetmap search does not work on self-hosted but works on aws #5

Open
xhluca opened this issue Dec 12, 2024 · 2 comments
Open

Comments

@xhluca
Copy link

xhluca commented Dec 12, 2024

          @gasse there seems to be another openstreetmap issue. On AWS, the search works:

image

It appears that on self-hosted, it doesn't, as the /api endpoint does not seem to be set up properly.

Originally posted by @xhluca in #3 (comment)

It will affect certain tasks, such as webarena.257:

image

@xhluca
Copy link
Author

xhluca commented Dec 12, 2024

Here's an example of what happens when the search is NOT working:

image

Here's the network traffic returning 404's:

XHRGET
https://my-cloudflare-webarena-hosted.com/way/474976514?xhr=1
[HTTP/2 404  87ms]

	
GET
	
scheme
	https
host
	my-cloudflare-webarena-hosted.com
filename
	/way/474976514
xhr
	1
Address
	172.64.80.1:443
Status
404
VersionHTTP/2
Transferred1.73 kB (241 B size)
Referrer Policystrict-origin-when-cross-origin
Request PriorityHighest
DNS ResolutionDNS over HTTPS

    	
    alt-svc
    	h3=":443"; ma=86400
    cache-control
    	no-cache
    cf-cache-status
    	DYNAMIC
    cf-ray
    	8f10aebec8b4a30a-YUL
    content-encoding
    	zstd
    content-language
    	en
    content-type
    	text/html; charset=utf-8
    date
    	Thu, 12 Dec 2024 21:07:11 GMT
    nel
    	{"success_fraction":0,"report_to":"cf-nel","max_age":604800}
    referrer-policy
    	strict-origin-when-cross-origin
    report-to
    	{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=3wFnH2jywAk%2BpMNDb2OwkA%2FNWYpf7SGRjnMZm%2F2EiJg%2F%2BcXXVxIEQ%2BNotJKvddlgGHD2wHKzeczYJ5nyEH5zr%2BNIheaP0yBhnJ%2FGijPkN66n0nCVMXMy7aEIMZF9ojqZEcuwDEA%2BOTdjeZ%2Bj%2B%2Fge3EnyZZu5h6w%3D"}],"group":"cf-nel","max_age":604800}
    server
    	cloudflare
    server-timing
    	start_processing.action_controller;dur=0.17, cache_read.active_support;dur=0.05, sql.active_record;dur=2.15, render_partial.action_view;dur=0.23, render_template.action_view;dur=1.11, render_layout.action_view;dur=1.37, process_action.action_controller;dur=14.56, cache_write.active_support;dur=0.15
    server-timing
    	cfL4;desc="?proto=TCP&rtt=14714&min_rtt=3763&rtt_var=17346&sent=51&recv=78&lost=0&retrans=2&sent_bytes=11723&recv_bytes=8617&delivery_rate=1032112&cwnd=240&unsent_bytes=0&cid=204c455a595d2343&ts=20303&x=0"
    vary
    	Accept-Language
    x-content-type-options
    	nosniff
    x-download-options
    	noopen
    X-Firefox-Spdy
    	h2
    x-frame-options
    	sameorigin
    x-page-title
    	Not%20Found%20%7C%20OpenStreetMap
    x-permitted-cross-domain-policies
    	none
    x-request-id
    	d26506ec-a8b9-4474-8ee3-57f4a740993e
    x-runtime
    	0.049507
    x-xss-protection
    	1; mode=block
    	
    Accept
    	text/html, */*; q=0.01
    Accept-Encoding
    	gzip, deflate, br, zstd
    Accept-Language
    	en-CA,en-US;q=0.7,en;q=0.3
    Connection
    	keep-alive
    Cookie
    	_osm_session=b428b3b980dfabcb23bf1f5a3e0ea941; _osm_location=-79.90428|40.45578|19|M; _osm_directions_engine=fossgis_osrm_car
    DNT
    	1
    Host
    	my-cloudflare-webarena-hosted.com
    Priority
    	u=0
    Referer
    	https://my-cloudflare-webarena-hosted.com/way/474976514
    Sec-Fetch-Dest
    	empty
    Sec-Fetch-Mode
    	cors
    Sec-Fetch-Site
    	same-origin
    TE
    	trailers
    User-Agent
    	Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:133.0) Gecko/20100101 Firefox/133.0
    X-CSRF-Token
    	wLfQ9KGtWSim36quhJB2Zq3s73ssXECSEmw3lAY3pm5cu1uJDbny3DZH-yf8Rr9btB3-3jPumBjnEg-asOS9Gg
    X-Requested-With
    	XMLHttpRequest

@xhluca
Copy link
Author

xhluca commented Dec 12, 2024

Here's the API endpoint that gets called:

https://my-cloudflare-webarena-hosted.com/api/0.6/way/474976514/full

Here's what it looks like:

image

On AWS instances, following the webarena official ami, e.g. on URLs like this:

http://ec2-random-numbers.compute-1.amazonaws.com:3000/way/474976514
http://ec2-random-numbers.compute-1.amazonaws.com:3000/api/0.6/way/474976514/full

It should appear like this:

image

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