From: zimoun <zimon.toutoune@gmail.com>
To: "Hartmut Goebel" <h.goebel@crazy-compilers.com>,
"Ludovic Courtès" <ludo@gnu.org>
Cc: 45615@debbugs.gnu.org
Subject: bug#45615: SWH API break?
Date: Thu, 7 Jan 2021 16:41:46 +0100 [thread overview]
Message-ID: <CAJ3okZ1Js7xMVZJ+dQVdmRUKM34++_+3Tha8HPfg-S8ngtKU4g@mail.gmail.com> (raw)
In-Reply-To: <18602984-9fa4-5d72-f17a-306c7336d5ea@crazy-compilers.com>
Hi,
Thanks for the report.
It comes from 'visit-snapshot-url' returning #<unspecified> instead of
#f. Then 'swh-url' fails because the 'path' argument is not a string.
Well, I do not how to fix it. I am confused by:
--8<---------------cut here---------------start------------->8---
;; <https://archive.softwareheritage.org/api/1/origin/52181937/visits/>
(define-json-mapping <visit> make-visit visit?
json->visit
(date visit-date "date" string->date*)
(origin visit-origin)
(url visit-url "origin_visit_url")
(snapshot-url visit-snapshot-url "snapshot_url" string*) ;string | #f
(status visit-status "status" string->symbol) ;'full | 'partial | 'ongoing
(number visit-number "visit"))
--8<---------------cut here---------------end--------------->8---
and why it is not string or #f.
Ludo, any tips? :-)
All the best,
simon
next prev parent reply other threads:[~2021-01-07 15:43 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-02 22:14 bug#45615: Wrong type argument in "guix lint -c archival" Hartmut Goebel
2021-01-07 15:41 ` zimoun [this message]
2021-01-11 13:12 ` bug#45615: SWH API break? Ludovic Courtès
2021-01-11 14:45 ` zimoun
2021-01-11 15:16 ` Ludovic Courtès
2021-01-14 11:09 ` Ludovic Courtès
2021-01-21 10:25 ` bug#45615: Wrong type argument in "guix lint -c archival" Ludovic Courtès
2021-01-16 16:59 ` Aleix via web
2021-01-21 10:27 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAJ3okZ1Js7xMVZJ+dQVdmRUKM34++_+3Tha8HPfg-S8ngtKU4g@mail.gmail.com \
--to=zimon.toutoune@gmail.com \
--cc=45615@debbugs.gnu.org \
--cc=h.goebel@crazy-compilers.com \
--cc=ludo@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.