Skip to content
This repository was archived by the owner on Mar 27, 2018. It is now read-only.
This repository was archived by the owner on Mar 27, 2018. It is now read-only.

400 Bad request  #2

Description

@jelly972

Hi, I've tried to use your package, and I keep hitting 400 response from BitBucket when making POST requests to cloud server.

the issue seems to be originated from the custom headers you added:

'User-Agent': 'Node Bitbucket',
'content-type': 'application/json'

removing them makes the code works smoothly.

I've tested it with all the API endpoints of pullrequests
https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Busername%7D/%7Brepo_slug%7D/pullrequests/%7Bpull_request_id%7D

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions