Comments (8)
Gah, referenced wrong issue number in commit message. Anyway, 48634ac.
from sodapy.
Thank you everybody for the bug reporting and the thanks! I came for the data, but stayed for the amazingly supportive Socrata open source dev community 🍾.
from sodapy.
I modified my _ _ init _ _.py. I edited line 354: if re.match(r'application\/json;\s*charset=utf-8', content_type) or re.match(r'application\/json', content_type):
This works for my application. The regex for json: re.match(r'application\/json;\s*charset=utf-8', content_type):
on line 354 does not match application/json
. Maybe my data source changed its header? Should the regex match json without charset specified?
Thanks for reading.
from sodapy.
What version of python are you using? It may not be related, but I had to upgrade python in order to meet Socrata's new security requirements.
from sodapy.
Hey, yeah I agree that this regex could definitely be more flexible with what it matches. I'll push an update for that soon.
from sodapy.
@timwis I'm using Python 2.7.6. Thanks for the link, I'll have to upgrade.
@xmunoz Thanks for the speedy fix!
from sodapy.
Just ran into this as well, seems Socrata may have updated the content-type headers for a bunch of datasets around 11/28 midnight UTC. Awesome to see there's already a fix, thanks @xmunoz!
from sodapy.
Thanks @xmunoz!
from sodapy.
Related Issues (20)
- `datasets()` no longer filters on domain
- Missing tag - 1.5.3 HOT 1
- Drop support for python2 by EOL in 2020
- [documentation] List of Eligible Domains is Out of Date
- limit=None reverts to default
- Issue with upsert/replace HOT 5
- Feature request: Option to disable the throttling limit warning HOT 2
- support automatic pagination HOT 1
- Dependabot couldn't authenticate with https://pypi.python.org/simple/
- Dependabot couldn't authenticate with https://pypi.python.org/simple/
- Support for Socrata Headers? HOT 3
- Documentation: Include `timeout` param in client example
- get_all() has inconsistent pagination HOT 6
- Delete By Row ID Not Working HOT 2
- SoQL query support for get_all() HOT 3
- Optional client.get "limit" defaults to 1000. Need limit=none HOT 1
- Needs update: Example 01: Basic Queries HOT 1
- `get_all()` does not paginate correctly, returning duplicate rows HOT 2
- Apply date filter in where field
- This repository will be archived on Aug 31 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sodapy.