internetarchive / internetarchive/openlibrary

IA import 500s if no publish_date

Open
#9,641 5 comments 0 reactions 0 assignees View on GitHub
Lead: @cdrini Module: Import Needs: Response Priority: 3 Type: Bug
Dominant language
Python
Stars
6.7k
Forks
2k
Avg merge
2d 19h
Merged PRs (30d)
138

Description

### Problem

### Evidence
![image](https://github.com/user-attachments/assets/e40b5457-ac0d-4a0f-a2de-7ebd998a4a3e)

### Reproducing the bug

Run:

```js
await fetch("https://openlibrary.org/api/import/ia?identifier=robinhood0000gilb_v2r5&require_marc=false&debug=true", {
"method": "POST",
});
```

* Expected behavior: It imports the record
* Actual behavior: It errors

### Context

- Browser (Chrome, Safari, Firefox, etc):
- OS (Windows, Mac, etc):
- Logged in (Y/N): Y
- Environment (prod, dev, local): prod

### Notes from this Issue's Lead

#### Proposal & constraints

#### Related files

#### Stakeholders


#### Instructions for Contributors

- Please [run these commands](https://github.com/internetarchive/openlibrary/wiki/Git-Cheat-Sheet#working-on-your-branch) to ensure your repository is up to date **before** [creating a new branch](https://github.com/internetarchive/openlibrary/wiki/Git-Cheat-Sheet#making-changes-and-creating-a-pull-request) to work on this issue and **each time after** pushing code to Github, because the pre-commit bot may add commits to your PRs upstream.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.