GithubHelp home page GithubHelp logo

Comments (1)

bfeldman89 avatar bfeldman89 commented on July 2, 2024

Traceback (most recent call last):
File "/home/bfeldman89/.virtualenvs/mdoc_scraper-Qob3084f/lib/python3.8/site-packages/documentcloud/client.py", line 164, in raise_for_status
response.raise_for_status()
File "/home/bfeldman89/.virtualenvs/mdoc_scraper-Qob3084f/lib/python3.8/site-packages/requests/models.py", line 943, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://api.beta.documentcloud.org/api/documents/22084993/

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "mdoc_scraper.py", line 81, in
main()
File "mdoc_scraper.py", line 77, in main
scrape_mdoc_stuff('https://www.mdoc.ms.gov/Admin-Finance/Pages/Daily-Inmate-Population.aspx', 'daily_population')
File "mdoc_scraper.py", line 66, in scrape_mdoc_stuff
obj = upload_to_documentcloud(this_dict['url'], this_dict, dc_data)
File "mdoc_scraper.py", line 22, in upload_to_documentcloud
obj.put()
File "/home/bfeldman89/.virtualenvs/mdoc_scraper-Qob3084f/lib/python3.8/site-packages/documentcloud/base.py", line 177, in put
return self.save()
File "/home/bfeldman89/.virtualenvs/mdoc_scraper-Qob3084f/lib/python3.8/site-packages/documentcloud/base.py", line 181, in save
self._client.put("{}/{}/".format(self.api_path, self.id), json=data)
File "/home/bfeldman89/.virtualenvs/mdoc_scraper-Qob3084f/lib/python3.8/site-packages/ratelimit/decorators.py", line 80, in wrapper
return func(*args, **kargs)
File "/home/bfeldman89/.virtualenvs/mdoc_scraper-Qob3084f/lib/python3.8/site-packages/documentcloud/client.py", line 148, in _request
self.raise_for_status(response)
File "/home/bfeldman89/.virtualenvs/mdoc_scraper-Qob3084f/lib/python3.8/site-packages/documentcloud/client.py", line 169, in raise_for_status
raise APIError(response=exc.response)
documentcloud.exceptions.APIError: 400 - {"title":["This field may not be null."]}

from mdoc_scraper.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.