Project

Profile

Help

Backport #9505

closed

Backport 9349 to 2.15: Object of type AptRepository is not JSON serializable

Added by rafzei over 2 years ago. Updated over 2 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
-
Sprint/Milestone:
Start date:
Due date:
% Done:

100%

Estimated time:
Triaged:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

Getting Internal Server Error 500 response when calling API.

Query: http post $BASE_ADDR/pulp/api/v3/publications/deb/apt/ repository="/pulp/api/v3/repositories/deb/apt//" simple="true" --verify false

Response:

HTTP/1.1 500 Internal Server Error
Access-Control-Expose-Headers: Correlation-ID
Connection: keep-alive
Content-Length: 145
Content-Type: text/html
Correlation-ID: b067f38ea4fc42ebaca8ef6a9a283460
Date: Wed, 13 Oct 2021 11:57:42 GMT
Referrer-Policy: same-origin
Server: nginx/1.20.1
Vary: Cookie
X-Content-Type-Options: nosniff
X-Frame-Options: DENY

<!doctype html>
<html lang="en">
<head>
  <title>Server Error (500)</title>
</head>
<body>
  <h1>Server Error (500)</h1><p></p>
</body>
</html>

Before, the Repository, Content and Content binding (using add_content_units) was done via API calls. pulpcore-api.log attached.


Files

pulpcore-api.log (3.6 KB) pulpcore-api.log rafzei, 10/13/2021 02:23 PM

Related issues

Is duplicate of Debian Support - Issue #9349: Fix pulpcore 3.15 deprecationsCLOSED - CURRENTRELEASEActions

Also available in: Atom PDF