Code Monkey home page Code Monkey logo

everylotbot's People

Contributors

eli173 avatar fitnr avatar wayneburkett avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

osmnshkh

everylotbot's Issues

Crash when the Google API fails to give a good SV URL

Google fails when trying to create an image for the following address (API key omitted):

https://maps.googleapis.com/maps/api/streetview?fov=65&pitch=10&location=50+S+LEONOR+K+SULLIVAN+BLVD%2C+St.+Louis%2C+MO&size=1000x1000

This gives an HTTP 500 error (again, you'll need to add an API key to see it), which causes a crash when Tweepy attempts to create a media object using the missing image:

Traceback (most recent call last):
File "/usr/local/bin/everylot", line 9, in
load_entry_point('everylot==0.3.1', 'console_scripts', 'everylot')()
File "build/bdist.macosx-10.13-intel/egg/everylot/bot.py", line 59, in main
File "build/bdist.macosx-10.13-intel/egg/twitter_bot_utils/api.py", line 206, in media_upload
File "build/bdist.macosx-10.13-intel/egg/twitter_bot_utils/api.py", line 230, in image_upload
File "build/bdist.macosx-10.13-intel/egg/tweepy/binder.py", line 250, in _call
File "build/bdist.macosx-10.13-intel/egg/tweepy/binder.py", line 234, in execute
tweepy.error.TweepError: media type unrecognized.

The command that generated the error is obviously app-specific, but here it is, anyway:

$ everylot stlparcels prcl.db --config ~/bots.yaml --dry-run --verbose --search-format "{address}, St. Louis, MO" --id 10059000030

10059000030 is the parcel ID for the address that causes the failure.

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.