Skip to content

Remove trailing slash from createListing endpoint - #77

Open
pyrogenic wants to merge 1 commit into
aknorw:masterfrom
pyrogenic:fix/create-listing-trailing-slash
Open

pyrogenic wants to merge 1 commit into
aknorw:masterfrom
pyrogenic:fix/create-listing-trailing-slash

Conversation

@pyrogenic

@pyrogenic pyrogenic commented Sep 7, 2026 •

Copy link
Copy Markdown

createListing requests a path with a trailing slash (it's the only one like this btw):

return this.fetcher.schedule<CreateListingResponse>('/marketplace/listings/', {}, HTTPVerbsEnum.POST, options)

The Discogs API 404s that path, so createListing cannot succeed. (This behavior must have changed on their end, since we know this part of discojs used to work.)

Can check w/o credentials, too:

POST https://api.discogs.com/marketplace/listings   → 401 (not authorized)
POST https://api.discogs.com/marketplace/listings/  → 404 (not found)
POST /marketplace/listings/ (with the trailing slash) returns 404 from
the Discogs API; the route only exists without it. Verified against the
live API: the slashless path returns 401 when unauthenticated (route
exists), the slashed one 404s.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@pyrogenic
pyrogenic marked this pull request as ready for review September 7, 2026 20:33

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant