-
Notifications
You must be signed in to change notification settings - Fork 55
Open
Labels
bugan unexpected problem or unintended behavioran unexpected problem or unintended behavior
Description
Hi,
I've gotten gmailr to work for me in the past, but am running into a problem now where it hangs when I try to send the emails. I'm creating a bunch of pdf receipts that I attach to an email to send to the people receiving the email. Before I fire everything off, I run your example code. Sometimes the example code works, sometimes it hangs on gm_create_draft and and gm_send_message.
gm_auth_configure(path = "~/credentials.json")
gm_auth(email = TRUE)
test_email <-
gm_mime() %>%
gm_to("xxxxxxx@umich.edu") %>%
gm_from("xxxxxxx@gmail.com") %>%
gm_subject("this is just a gmailr test") %>%
gm_text_body("Can you hear me now?")
# Verify it looks correct
gm_create_draft(test_email)
#Error in gmailr_POST("drafts", user_id, class = "gmail_draft", query = list(uploadType = "media"), :
# Gmail API error: 408
gm_send_message(test_email)
When I get to my loop where I send out the emails, sometimes it will get through several of the recipients and then hang but mostly it is just hanging and not doing anything. This sounds like #126, but I'm not sure.
> sessionInfo()
R version 4.0.2 (2020-06-22)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Catalina 10.15.6
Matrix products: default
BLAS: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRblas.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRlapack.dylib
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] xtable_1.8-4 rmarkdown_2.3 forcats_0.5.0 stringr_1.4.0
[5] dplyr_1.0.2 purrr_0.3.4 readr_1.3.1 tidyr_1.1.2
[9] tibble_3.0.3 ggplot2_3.3.2 tidyverse_1.3.0 devtools_2.3.1
[13] usethis_1.6.1 gmailr_1.0.0.9000
loaded via a namespace (and not attached):
[1] httr_1.4.2 pkgload_1.1.0 jsonlite_1.7.1 modelr_0.1.8
[5] assertthat_0.2.1 askpass_1.1 blob_1.2.1 cellranger_1.1.0
[9] yaml_2.2.1 remotes_2.2.0 sessioninfo_1.1.1 pillar_1.4.6
[13] backports_1.1.9 glue_1.4.2 digest_0.6.25 rvest_0.3.6
[17] colorspace_1.4-1 htmltools_0.5.0 pkgconfig_2.0.3 broom_0.7.0
[21] haven_2.3.1 scales_1.1.1 processx_3.4.4 openssl_1.4.3
[25] generics_0.0.2 ellipsis_0.3.1 withr_2.3.0 cli_2.0.2
[29] magrittr_1.5 crayon_1.3.4 readxl_1.3.1 mime_0.9
[33] memoise_1.1.0 evaluate_0.14 ps_1.3.4 fs_1.5.0
[37] fansi_0.4.1 xml2_1.3.2 pkgbuild_1.1.0 tools_4.0.2
[41] prettyunits_1.1.1 hms_0.5.3 gargle_0.5.0 lifecycle_0.2.0
[45] munsell_0.5.0 reprex_0.3.0 callr_3.4.4 compiler_4.0.2
[49] tinytex_0.25 rlang_0.4.7 grid_4.0.2 rstudioapi_0.11
[53] base64enc_0.1-3 testthat_2.3.2 gtable_0.3.0 DBI_1.1.0
[57] curl_4.3 rematch2_2.1.2 R6_2.4.1 lubridate_1.7.9
[61] knitr_1.29 utf8_1.1.4 rprojroot_1.3-2 desc_1.2.0
[65] stringi_1.4.6 Rcpp_1.0.5 vctrs_0.3.4 dbplyr_1.4.4
[69] tidyselect_1.1.0 xfun_0.16 Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugan unexpected problem or unintended behavioran unexpected problem or unintended behavior