Repository navigation
Conversation
tdhock
commented
Nov 13, 2026
| run: | | ||
| uploadImage() { | ||
| curl --fail --retry 3 -sS -F "file=@$1" -F "visibility=unlisted" https://picrd.com/api/upload | jq -r '.image_url // empty' || true | ||
| curl --fail --retry 3 -sS -H "Authorization: Bearer $PICRD_API_KEY" -F "file=@$1" -F "visibility=unlisted" https://picrd.com/api/upload | jq -r '.url // empty' || true |
Member
Author
There was a problem hiding this comment.
also new json has url (not image_url)
{"id":"SVUYtiM14sS","url":"https://picrd.com/f/SVUYtiM14sS","raw_url":"https://picrd.com/raw/SVUYtiM14sS.png","filename":"cropped-mmit.png","mime_type":"image/png","size":"189.3 KB","size_bytes":193877,"metadata":{},"expires_at":null,"collection_id":null}this works locally
(base) hoct2726@dinf-thock-02i:~$ echo '{"id":"SVUYtiM14sS","url":"https://picrd.com/f/SVUYtiM14sS","raw_url":"https://picrd.com/raw/SVUYtiM14sS.png","filename":"cropped-mmit.png","mime_type":"image/png","size":"189.3 KB","size_bytes":193877,"metadata":{},"expires_at":null,"collection_id":null}'|jq -r '.url // empty' || true
https://picrd.com/f/SVUYtiM14sS
Member
Author
There was a problem hiding this comment.
actually, it should be raw_url instead of url
Generated via commit d20686a Download link for the artifact containing the test results: ↓ atime-results.zip
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

In atime comments we see (Plot image upload to picrd.com failed; download the artifact below to view plots).
This is caused by 401 error from picrd (unauthorized).
Apparently picrd needs an api key now, so I signed up for one, and added it as a repo Actions secret.