You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I'm updating the file using the following endpoint
/2.0/repositories/{accountName}/{repoName}/src
The same exact code works great with 3/4 repositories, but one returns 500 with the following message
{"type":"error","error":{"message":"Something went wrong","id":"b269a691d3b14d5e85b3316c934d4ef4"}
I can see the file was updated despite the error.
G'day.
The error code you've shared translated to a timeout error which generally happens if the upload files are large or if there's a network issue while uploading the files.
Though the files were updated in UI, they may partially be uploaded in some cases.
That said, I would suggest reviewing the files to verify if it does upload everything for standard code files. If it's binaries files, you may need to clone the repository to test them.
I hope this helps.
Cheers,
Syahrul
Hey @Syahrul thanks for the reply.
The file is a pretty small XML file, only 16KB. It also happens only in this particular repository. Other repositories respond with no errors and I'm uploading this file to 3 repos simultaneously. It sounds like a BitBucket issue rather than a file or network problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Noted. Can you consistently reproduce the issue on this specific repository?
If yes, can you see if you can create a commit manually on this repository via the UI//terminal?
This should help identify the behavior if it's an API-only issue or a git terminal.
Let me know the results.
Cheers,
Syahrul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey, @Syahrul sorry for the late reply.
The issue reproduced 9 out of 10 times. The same result was when using the UI. When using the terminal the `git push` almost always succeeds but takes a relatively long time, nearly one minute.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
After a few additional failures to create the commit with the API, my colleague gets an error when trying to `git push`
remote: error: cannot lock ref 'refs/heads/{BRANCH}': Unable to create '/opt/micros/data/cvs/vp0530/data/d-825/r-19070825/./refs/heads/{BRANCH}.lock': File exists.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the update.
I have raised a support ticket for you to continue the investigation.
You can check your ticket at the Support portal.
Cheers,
Syahrul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.