Common issues
FAQs
Question: Why do I hit a 404-page on local when the page shows up on openlibrary.org site?
Answer: Check out the answer for this here: https://github.com/internetarchive/openlibrary/issues/1864
Question: What should I do to find the endpoints/files relating to the components I want to contribute to?
Answer: https://dev.openlibrary.org/developers/routes - can be found here
Issue link: For a full description see: https://github.com/internetarchive/openlibrary/issues/1865
Question: What should I do when book covers won't load locally?
Answer: This can be resolved by going to conf/openlibrary.yml and changing coverstore_url to https://covers.openlibrary.org.
Issue link: For a full description see: https://github.com/internetarchive/openlibrary/issues/1897
Book covers
By default, uploading book covers works in the local development environment, but some existing books may return 404 for their covers. This is expected because no actual images are included in the test database.
If you use copydocs (more info) to import books, these imported books will also return 404 for their covers. To resolve this, change coverstore_public_url in conf/openlibrary.yml to https://covers.openlibrary.org/. This configures the web page to fetch covers from production instead of your local environment.
Be sure to restart your dev instance after any configuration changes.