Skip to content

Commit

Permalink
fix: 🐛 update error response and length retries
Browse files Browse the repository at this point in the history
  • Loading branch information
megasanjay committed Jun 4, 2022
1 parent b3845e8 commit 8688ebd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,8 @@ export default {
let retriesSuccess = false;
const timeout = 1000;
// retry request 10 times with a 1 second delay
for (let i = 0; i < 10 && !retriesSuccess; i++) {
// retry request 30 times with a 1 second delay
for (let i = 0; i < 30 && !retriesSuccess; i++) {
console.log(`Retry ${i}...`);
axios.get(`${this.$server_url}/api_version`).then((echo_response) => {
console.log(`Server Status: ${echo_response.data}`);
Expand Down
2 changes: 1 addition & 1 deletion src/pyflask/figshare.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def publishFigshareArticle(access_token, article_id):
{
"status": "ERROR",
"message": "Could not publish article",
"details": [response.json()]["message"],
"details": (response.json())["message"],
}
)

Expand Down

0 comments on commit 8688ebd

Please sign in to comment.