mapbox / mapbox/mapbox-sdk-js

Create tileset source throws error in v0.16

Open
#486 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
768
Forks
191
PR merge metrics
No merged PRs in 30d

Description

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\".`

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the tilesets.createTilesetSource call with v0.16.0 and the same file argument, then compare its request handling with v0.13.4. The work is done when the documented call accepts the file and no longer reports that file data is missing.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.