aboutcode-org / aboutcode-org/purldb

Public API often returns error 500 for no obivous reason

未关闭
#856 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
HTML
星标
67
派生
69
平均合并
8 天 8 小时
30 天内合并 PR
1

描述

I have been trying the collect endpoint a bit, but some purls just always seem to return an error 500. For example:

```
> curl -v https://public.purldb.io/api/collect/?purl=pkg:maven/com.fasterxml.jackson.core/jackson-annotations@2.21
* Host public.purldb.io:443 was resolved.
* IPv6: (none)
* IPv4: 37.27.52.79
* Trying 37.27.52.79:443...
* Connected to public.purldb.io (37.27.52.79) port 443
* ALPN: curl offers h2,http/1.1
* (304) (OUT), TLS handshake, Client hello (1):
* CAfile: /etc/ssl/cert.pem
* CApath: none
* (304) (IN), TLS handshake, Server hello (2):
* (304) (IN), TLS handshake, Unknown (8):
* (304) (IN), TLS handshake, Certificate (11):
* (304) (IN), TLS handshake, CERT verify (15):
* (304) (IN), TLS handshake, Finished (20):
* (304) (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / AEAD-CHACHA20-POLY1305-SHA256 / [blank] / UNDEF
* ALPN: server accepted h2
* Server certificate:
* subject: CN=public.purldb.io
* start date: Jan 23 01:33:48 2026 GMT
* expire date: Apr 23 01:33:47 2026 GMT
* subjectAltName: host "public.purldb.io" matched cert's "public.purldb.io"
* issuer: C=US; O=Let's Encrypt; CN=R13
* SSL certificate verify ok.
* using HTTP/2
* [HTTP/2] [1] OPENED stream for https://public.purldb.io/api/collect/?purl=pkg:maven/com.fasterxml.jackson.core/jackson-annotations@2.21
* [HTTP/2] [1] [:method: GET]
* [HTTP/2] [1] [:scheme: https]
* [HTTP/2] [1] [:authority: public.purldb.io]
* [HTTP/2] [1] [:path: /api/collect/?purl=pkg:maven/com.fasterxml.jackson.core/jackson-annotations@2.21]
* [HTTP/2] [1] [user-agent: curl/8.7.1]
* [HTTP/2] [1] [accept: */*]
> GET /api/collect/?purl=pkg:maven/com.fasterxml.jackson.core/jackson-annotations@2.21 HTTP/2
> Host: public.purldb.io
> User-Agent: curl/8.7.1
> Accept: */*
>
* Request completely sent off
< HTTP/2 500
< content-type: text/html; charset=utf-8
< cross-origin-opener-policy: same-origin
< date: Mon, 23 Mar 2026 10:57:33 GMT
< referrer-policy: same-origin
< server: nginx/1.25.3
< x-content-type-options: nosniff
< x-frame-options: DENY
< content-length: 145
<

Server Error (500)

Server Error (500)

* Connection #0 to host public.purldb.io left intact
```

some more PURLs that I never got a successful reply for if it helps debugging.

```
pkg:maven/com.amazonaws/aws-java-sdk-core@1.12.788
pkg:npm/micromark-factory-label@2.0.1
pkg:npm/style-mod@4.1.3
```

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。