Comments (6)
After some testing, I can say that this issue is unrelated to #56. The error occurs because the trail has no name tag in the metadata section. wanderer parses this section to determine the trail name when uploading through the API. If the trail name is empty PocketBase rejects the insert attempt as the name field is required for a trail entry.
The trail you provided as an example has a name, so it uploads without problems in my tests.
from wanderer.
You are absolutely right, the example file was actually the only file in a group that did upload correctly - oops. The others do have a name, but defined outside the metadata section: see correct example here.
At any rate, just erroring out because a track has no name may not be the right way to go? Maybe a fallback to the file name is a better strategy?
from wanderer.
I agree. Trails without a name will get a generic "trail-" name in the next patch.
I won't take names outside of the metadata tag into account as they are not part of the official GPX specs.
from wanderer.
I won't take names outside of the metadata tag into account as they are not part of the official GPX specs.
That makes complete sense, probably better to keep Pandora's box firmly closed.
Thanks for the great work, it is really appreciated! 👍
from wanderer.
I think something changed in a version prior to 0.5.1. I don't know which version I was running when I uploaded 500 GPX files without any problem ( apart from English to Dutch! [1]) 👍
Note: all my GPXs are created by various Garmin or Bosch devices, I have no control over how they create the GPXs.
The GPXs created by these devices place the name into the tag:
<trk><name>
and not:
<metadata><name>
If the <trk><name>
key/value is copied to <metadata>
Wanderer will create the trail.
[1] something else happened with the 500 GPX file import, the Track Names were translated from English to Dutch!
- Logbook -> Logboek
from wanderer.
I just published v0.6.0. Trails without a name in the metadata tag will now get uploaded and receive a generic name.
from wanderer.
Related Issues (20)
- Internal server error 500 when accessing trials or map without signing in. HOT 2
- error "Payload Too Large" HOT 1
- 500 Internal Error HOT 5
- iOS Upload gpx via files is not possible HOT 3
- [HOW TO] Setup wanderer after NPM/Proxy HOT 6
- Still listens on port 3000 even with port changed in docker-compose HOT 2
- [Feature] Share trails between users HOT 2
- Track not show in map view, NaNs in some fields HOT 3
- Add Track Name Metadata to exported GPX file HOT 2
- Exported GPX File Extension HOT 1
- Add ability for own branding (logo, site name) HOT 3
- [Feature request] Log out button HOT 3
- No Signup link after installing HOT 1
- Update account password HOT 1
- Uploading FIT files
- Problem with meilisearch and svelte during baremetal install HOT 2
- Pocketbase Portal Admin Account Creation '405 Method Not Allowed' HOT 2
- Logging in from Another Computer HOT 3
- Version 0.60 - gpx Import ok, all tracks with wrong names HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wanderer.