wanderer icon indicating copy to clipboard operation
wanderer copied to clipboard

import errors are not properly formatted

Open ChristianSch opened this issue 4 months ago • 10 comments

When importing a bunch of GPX files via the settings page, some of them failed for me. The server responded with "Failed to load resource: the server responded with a status of 500 ()" (a 500) and the error message for the user is formatted as:

Image

I guess that is not by design and could use a properly formatted error message.

ChristianSch avatar Jul 27 '25 13:07 ChristianSch

Will they fail again in second upload? Or is it random which track will be accepted or not? If this are some specific tracks, can you provide an sample please?

slothful-vassal avatar Aug 15 '25 08:08 slothful-vassal

@ChristianSch Could you please provide the gpx file? You can upload it here by changing the file type to .txt.

I agree that the error message should be properly formatted, however the I think the error occurring in the first place should also be investigated.

Flomp avatar Aug 20 '25 11:08 Flomp

I'm having the same issue, except with all of my GPX files. But they all do work if I try to upload them via /trail/edit/new. I just can't figure out why they dont work at /settings/export as the only feedback is the [object Object] or Internal Error 500 and an empty response. I get the same error "message: {}" as the web response if I try to manually force an upload by using the upload folder.

Possible to get some help here? Or should I open a new issue?

lucai11 avatar Sep 03 '25 08:09 lucai11

Can you provide a sample file please? I did have a similar situation. Not possible to upload file using settings/export page, but it works using trail edit page. After logout and login again -> problem solved.

slothful-vassal avatar Sep 05 '25 19:09 slothful-vassal

Glacier burn.txt

Tried the logging in and out, didn't help unfortunately

lucai11 avatar Sep 05 '25 20:09 lucai11

This file is working fine on my instance. Please, ccould you provide more details about your environment setup? Any further issues with your installation?

slothful-vassal avatar Sep 06 '25 07:09 slothful-vassal

im running on a headless ubuntu server. tried running thru reverse proxy initially, swapped to lan access (changed origin etc) to see if that would fix it. Upload always works thru trail/edit/new just not the settings/export route.

I tried uploading a file manually with the docker exec command and get the same response via CLI. {"message":{}}

wanderer-web docker container has this: [svelte-i18n] Message "trail" has syntax error: Incorrect locale information provided [svelte-i18n] Message "list" has syntax error: Incorrect locale information provided [svelte-i18n] Message "trail" has syntax error: Incorrect locale information provided [svelte-i18n] Message "list" has syntax error: Incorrect locale information provided [INFO] [08:00:00]: Starting auto-upload [INFO] [08:00:00]: Login successful. Cookie obtained. [ERROR] [08:00:02]: Failed to upload file /app/uploads/Glacier burn.gpx. [INFO] [08:00:02]: Auto-upload completed

Hopefully I'm not missing something stupid with the "trail" and "list" syntax errors?

docker-compose is `x-common-env: &cenv MEILI_URL: http://search:7700 MEILI_MASTER_KEY: xxx

services: search: container_name: wanderer-search image: getmeili/meilisearch:v1.11.3 environment: <<: *cenv MEILI_NO_ANALYTICS: "true" ports: - 7700:7700 networks: - wanderer volumes: - ./data/data.ms:/meili_data/data.ms restart: unless-stopped healthcheck: test: curl --fail http://localhost:7700/health || exit 1 interval: 15s retries: 10 start_period: 20s timeout: 10s db: container_name: wanderer-db image: flomp/wanderer-db depends_on: search: condition: service_healthy environment: <<: *cenv POCKETBASE_ENCRYPTION_KEY: xxx ORIGIN: http://192.168.0.120:5834 ports: - "8090:8090" networks: - wanderer restart: unless-stopped volumes: - ./data/pb_data:/pb_data healthcheck: test: wget --spider -q http://localhost:8090/health || exit 1 interval: 15s retries: 10 start_period: 20s timeout: 10s web: container_name: wanderer-web image: flomp/wanderer-web depends_on: search: condition: service_healthy db: condition: service_healthy environment: <<: *cenv ORIGIN: http://192.168.0.120:5834 BODY_SIZE_LIMIT: Infinity PUBLIC_POCKETBASE_URL: http://db:8090 PUBLIC_DISABLE_SIGNUP: "false" UPLOAD_FOLDER: /app/uploads UPLOAD_USER: user UPLOAD_PASSWORD: password PUBLIC_VALHALLA_URL: https://valhalla1.openstreetmap.de PUBLIC_NOMINATIM_URL: https://nominatim.openstreetmap.org volumes: - ./data/uploads:/app/uploads # - ./data/about.md:/app/build/client/md/about.md ports: - "5834:3000" networks: - wanderer restart: unless-stopped healthcheck: test: curl --fail http://localhost:3000/ || exit 1 interval: 15s retries: 10 start_period: 20s timeout: 10s

valhalla: image: ghcr.io/gis-ops/docker-valhalla/valhalla:latest ports: - "8002:8002" volumes: - ./data/valhalla:/custom_files environment: - tile_urls=https://download.geofabrik.de/australia-oceania/new-zealand-latest.osm.pbf - use_tiles_ignore_pbf=True - force_rebuild=False - force_rebuild_elevation=False - build_elevation=True - build_admins=True - build_time_zones=True

networks: wanderer: driver: bridge `

the help is much appreciated thank you

lucai11 avatar Sep 06 '25 08:09 lucai11

Are there any logs in the db container or in pocketbase itself?

Flomp avatar Sep 13 '25 11:09 Flomp

Not showing any errors in pocketbase. Nothing in db container either.

The below is meant to be my user correct? not db superuser? UPLOAD_USER: user UPLOAD_PASSWORD: password

Or is there some sort of permission that my user would be working via the one route but not the other?

lucai11 avatar Sep 14 '25 19:09 lucai11

The user/password are the credentials of the user you use to log in to wanderer.

Flomp avatar Sep 18 '25 13:09 Flomp