r-hub / rhub

R-hub API client
https://r-hub.github.io/rhub/
Other
347 stars 49 forks source link

parse error: premature EOF #610

Open eitsupi opened 1 month ago

eitsupi commented 1 month ago

An error occurred that I don't understand.

> rhub::rhub_check()
✔ Found git repository at /workspaces/prqlr.
✔ Found GitHub PAT.

Available platforms (see `rhub::rhub_platforms()` for details):

 1 [VM] linux          R-* (any version)                     ubuntu-latest on GitHub
 2 [VM] macos          R-* (any version)                     macos-13 on GitHub
 3 [VM] macos-arm64    R-* (any version)                     macos-latest on GitHub
 4 [VM] windows        R-* (any version)                     windows-latest on GitHub
 5 [CT] atlas          R-devel (2024-05-17 r86565)           Fedora Linux 38 (Container Image)
 6 [CT] clang-asan     R-devel (2024-05-17 r86565)           Ubuntu 22.04.4 LTS
 7 [CT] clang16        R-devel (2024-05-16 r86559)           Ubuntu 22.04.4 LTS
 8 [CT] clang17        R-devel (2024-05-16 r86559)           Ubuntu 22.04.4 LTS
 9 [CT] clang18        R-devel (2024-05-16 r86559)           Ubuntu 22.04.4 LTS
10 [CT] donttest       R-devel (2024-05-16 r86559)           Ubuntu 22.04.4 LTS
11 [CT] gcc13          R-devel (2024-05-17 r86565)           Fedora Linux 38 (Container Image)
12 [CT] intel          R-devel (2024-05-17 r86565)           Fedora Linux 38 (Container Image)
13 [CT] mkl            R-devel (2024-05-17 r86565)           Fedora Linux 38 (Container Image)
14 [CT] nold           R-devel (2024-05-17 r86565)           Ubuntu 22.04.4 LTS
15 [CT] nosuggests     R-devel (2024-05-16 r86559)           Fedora Linux 38 (Container Image)
16 [CT] ubuntu-clang   R-devel (2024-05-17 r86565)           Ubuntu 22.04.4 LTS
17 [CT] ubuntu-gcc12   R-devel (2024-05-17 r86565)           Ubuntu 22.04.4 LTS
18 [CT] ubuntu-next    R-4.4.0 (patched) (2024-05-14 r86559) Ubuntu 22.04.4 LTS
19 [CT] ubuntu-release R-4.4.0 (2024-04-24)                  Ubuntu 22.04.4 LTS
20 [CT] valgrind       R-devel (2024-05-17 r86565)           Fedora Linux 38 (Container Image)

Selection (comma separated numbers, 0 to cancel): 1, 5
Error in `h(simpleError(msg, call))`:
! parse error: premature EOF

                     (right here) ------^

Type .Last.error to see the more details.
corybrunson commented 2 weeks ago

I also encounter this error, but only on one machine (of two tried, both using MacOS): iMac, MacOS Catalina v10.15.7, R v4.2.3.

I've traced it to rhub:::gh_rest_post(), where it becomes difficult to debug further.