Skip to content

Conversation

@pswaminathan
Copy link
Contributor

I don't know if this is official or documented anywhere, but it looks like the mapping file ID must be a UUID without hyphens. Uploading a file with a UUID like 6ac7912c-d163-47a0-ae4e-f6d3ad3a21c7 results in an API response like:

"error": {
    "code": 3,
    "message": "Invalid URL: Not a valid uuid."
}

Removing the hyphens makes it work.

I'm not sure how "generalizable" we want the code in this repository to be. It seems to me that this target should specifically be used to generate a UUID that can be used directly for a mapping file upload. To that end, I think it is correct to follow the exact format that makes this work, rather than make something purely generalizable.

Remove hyphens from UUID to satisfy mapping file ID requirements

I don't know if this is official or documented anywhere, but it looks
like the mapping file ID must be a UUID *without hyphens*. Uploading a
file with a UUID like 6ac7912c-d163-47a0-ae4e-f6d3ad3a21c7 results in
an API response like:

```
"error": {
    "code": 3,
    "message": "Invalid URL: Not a valid uuid."
}
```

Removing the hyphens makes it work.

I'm not sure how "generalizable" we want the code in this repository
to be. It seems to me that this target should specifically be used to
generate a UUID that can be used directly for a mapping file upload.
To that end, I think it is correct to follow the exact format that
makes this work, rather than make something purely generalizable.
@ahumesky
Copy link
Collaborator

Yeah this tool doesn't need to be generic. Could you also update the README.md to remove the hyphens in the example?

@pswaminathan
Copy link
Contributor Author

Done!

@ahumesky
Copy link
Collaborator

Also the 0.1 release is over 6 years old, so we should probably get a 0.2 out, so let us know when everything is working and we can cut a release (and create a BCR entry for that matter)

@ahumesky ahumesky merged commit 7221848 into bazelbuild:master Nov 11, 2024
@ahumesky
Copy link
Collaborator

thank you!

@pswaminathan pswaminathan deleted the patch-1 branch March 5, 2025 01:33
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

Successfully merging this pull request may close these issues.

2 participants