aboutcode-org / aboutcode-org/purldb

Public API often returns error 500 for no obivous reason

Đang mở
#856 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
HTML
Star
67
Fork
69
Merge trung bình
8 ngày 8 giờ
Pull request đã merge (30 ngày)
1

Mô tả

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
```

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.