New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error acessing a google sheet with gs_url #272

Closed
gusmmm opened this Issue Aug 28, 2016 · 4 comments

Comments

Projects
None yet
2 participants
@gusmmm

gusmmm commented Aug 28, 2016

I can no longer access my google sheet - with enabled link to view - with gs_url(link), from today. It was working just fine until yesterday, nothing was changed in my code or sheet. The error I get is:

Worksheets feed constructed with public visibility
Error in stop_for_content_type(req, expected = "application/atom+xml; charset=UTF-8") :
Expected content-type:
application/atom+xml; charset=UTF-8
Actual content-type:
text/html; charset=UTF-8

Any idea why? Thanks

@jennybc

This comment has been minimized.

Owner

jennybc commented Aug 28, 2016

Can you make sure this sheet is Published to the web via the File menu? Merely being Public on the web, via the share button in upper right corner, is not enough to permit API access.

@jennybc

This comment has been minimized.

Owner

jennybc commented Aug 28, 2016

It is totally confusing, see large red box number 2 here: https://developers.google.com/google-apps/spreadsheets/worksheets and I should make more of an effort to catch and provide a constructive error message.

@gusmmm

This comment has been minimized.

gusmmm commented Aug 30, 2016

It solved the problem. I don't understand why this worked well before, then all of a sudden it stopped working. It worked perfectly just by sharing the link without having to publish it to the web...

@jennybc

This comment has been minimized.

Owner

jennybc commented Aug 30, 2016

Not sure if I understand you correctly ... but a Sheet that is "Public on the web" will "work perfectly" for other people if they are viewing and editing it through, e.g., the browser. But the googlesheets package needs something beyond that. We need access via the Sheets API and it has higher and very confusing standards. It requires the Sheet to be "Published on the web". Glad you've got it working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment