Skip to content

Commit

Permalink
Add debugging message for #443
Browse files Browse the repository at this point in the history
This commit doesn't fix #443, but closes it until we can reproduce again the error.
  • Loading branch information
0x2b3bfa0 committed Mar 17, 2021
1 parent a5df22e commit 07f5484
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,13 @@ const upload = async (opts) => {
const response = await fetch(endpoint, { method: 'POST', headers, body });
const uri = await response.text();

if (!uri) {
console.log(response);
throw new Error(
'Malformed response; please report at https://github.com/iterative/cml/issues/443'
);
}

return { uri, mime, size };
};

Expand Down

2 comments on commit 07f5484

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test Comment

CML watermark

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test Comment

CML watermark

Please sign in to comment.