question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BitbucketServer] com.atlassian.bitbucket.DataStoreException when posting danger output

See original GitHub issue

Node v10.6.0. Danger 3.7.20. Danger-swift cloned from master (most recent version).

I am running the following:

export DANGER_FAKE_CI="YEP"
export DANGER_TEST_REPO='repo'
export DANGER_TEST_PR='123'
export DEBUG="*"
danger process danger-swift

Everything works well, and danger is properly executed until the last moment. I even see what danger-swift returns to process, which seems fine (does not seem to be a danger-swift issue): screen shot 2018-07-17 at 05 51 58

But just some lines after, when it is doing the post of the “no CHANGELOG entry added” comment to the Bitbucket API it fails with error 500:

Response: {
  "errors": [
    {
      "context": null,
      "message": "A database error has occurred.",
      "exceptionName": "com.atlassian.bitbucket.DataStoreException"
    }
  ]
}

I was pretty sure that was an issue with my bitbucket configuration, but after testing with curl and using the same POST request, the comment appeared in the PR successfully in all my tests.

Maybe an encoding issue?

I already spent several hours with this, and I run out of ideas. Any insight would be very much welcome. Thanks 😃

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
ortacommented, Jul 18, 2018

Be wary, danger is just a spare time project for me, over a day is very reasonable for me to get back to you.

However, no, not without writing code I’m afraid.

1reaction
ortacommented, Jul 17, 2018

Not really, but ideally we don’t have an option like that - I mean, bitbucket supports emojis in comments, so I’m not sure why using the API it fails in your case, maybe try check out their API docs to see if there’s some special setting around content types?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bitbucket - DataStoreException: A database error has occurred
This article only applies to Atlassian products on the server and data center platforms. Summary. An operation fails (perhaps in the UI) and...
Read more >
DataStoreException (Bitbucket Server - API 7.12.0 API)
public class DataStoreException extends ServiceException. Exception thrown when an operation on a data store, such as the database or disk, fails.
Read more >
Configuration properties | Bitbucket Data Center and Server 8.6
Forces "dangerous" file types to be downloaded, rather than allowing them to be viewed in the browser. These options are case-sensitive and ...
Read more >
401 response and SQL exception thrown when REST API ...
If REST API calls are made in parallel (or in very rapid succession) a 401 is returned and a SQL exception is seen...
Read more >
How to configure CAPTCHA in Bitbucket Server
This article only applies to Atlassian products on the server and data center platforms. Summary. Bitbucket Server end users or Build systems ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found