Skip to content
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

get_events More descriptive error message than "Result 1 is not a length 1 atomic vector" #29

Closed
RickPack opened this issue Mar 8, 2018 · 6 comments

Comments

@RickPack
Copy link
Collaborator

RickPack commented Mar 8, 2018

I hope to explore this more carefully but get_events returns:
Error: Result 1 is not a length 1 atomic vector

when one submits:
grp_events <- get_events("tangoutopia", event_status = "past")

I do not yet know why. There are plenty of past Meetups in https://www.meetup.com/tangoutopia/events/past/ and indeed the function prints:
Downloading 1021 record(s)...

EDIT Can someone see if you also experience this error? I wonder if this is due to me hitting the API too frequently in a given expanse of time.

EconomiCurtis pushed a commit to EconomiCurtis/meetupr that referenced this issue Apr 30, 2018
EconomiCurtis pushed a commit to EconomiCurtis/meetupr that referenced this issue Apr 30, 2018
@EconomiCurtis
Copy link

I'm with you on the utility of a more useful error message. The source of this message was in purrr, when an api call requests a field that is not present, and in your purrr map function call no default is provided.

You might want to check out the conversation in purrr issues: https://github.com/tidyverse/purrr/search?q=is+not+a+length+1+atomic+vector&type=Issues

I can imagine with situations like this, with many map calls, it might be useful to have a verbose error messages that refers to specific field you were hoping to see.

@pr130
Copy link
Contributor

pr130 commented Jan 25, 2019

this is also a problem in get_event_attendees, e.g. in the example provided in the docs:

library(meetupr)
urlname <- "rladies-nashville"
past_events <- get_events(urlname = urlname, event_status = "past")
#> Warning in strptime(x, fmt, tz = "GMT"): unknown timezone 'zone/tz/2018i.
#> 1.0/zoneinfo/Europe/Berlin'
#> Downloading 14 record(s)...
event_id <- past_events$id[1]  #first event for this group
attendees <- get_event_attendees(urlname, event_id)
#> Downloading 1 record(s)...
#> Error: Result 1 is not a length 1 atomic vector

@maelle
Copy link
Contributor

maelle commented Jan 12, 2021

I don't get any error with the reprex above. @friep would you have time to try the package's latest version? Maybe @Athanasiamo's work on the internals fixed this.

@maelle
Copy link
Contributor

maelle commented Jan 30, 2021

@friep do you still get an error?

@drmowinckels
Copy link
Member

I cannot reproduce this error either.

@pr130
Copy link
Contributor

pr130 commented Feb 9, 2021

sorry for taking so long. unfortunately i can't really try it out because i get an unrelated auth error that i don't have the time to debug ( I wrote @maelle on twitter about it). sadly i don't have time to look into it. but i think if you both can't reproduce this anymore (not surprising after 2 years) it is safe to close this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants