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

Create tileset source throws error in v0.16 #486

Open
MatejSkrbis opened this issue Jun 3, 2024 · 1 comment
Open

Create tileset source throws error in v0.16 #486

MatejSkrbis opened this issue Jun 3, 2024 · 1 comment

Comments

@MatejSkrbis
Copy link

MatejSkrbis commented Jun 3, 2024

I tried upgrading the library from v0.13.4 to v0.16.0

When calling this code to create a tileset source in v0.13.4 it works, but in v0.16.0 it throws an error:

const tileSourceResponse = await this.tilesets.createTilesetSource({
    id: sourceId,
    file: `./${id}.ldgeojson`
}).send();

Error is:
No file data in request. Expected 1 file named \"file\".

@angelmunozs
Copy link

That's right, the same is happening to me and I think it's due to the changes introduced in version 0.15.4. The Mapbox API is responding with a 400 Bad Request.

I have downgraded to 0.15.3 for now until it's fixed...

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

2 participants