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

rhub down #565

Closed
markjrieke opened this issue Aug 27, 2023 · 6 comments
Closed

rhub down #565

markjrieke opened this issue Aug 27, 2023 · 6 comments

Comments

@markjrieke
Copy link

looks like the webapp is down, seeing the same error as #319 and #340

@gaborcsardi
Copy link
Collaborator

I don't see any downtime in the logs, and it is certainly up now.

@markjrieke
Copy link
Author

Hm, gotcha --- are there other reasons to see this error?

No encoding supplied: defaulting to UTF-8.
Error in query("GET PLATFORMS", as = "text") : rhub error

I'm running via devtools::check_rhub(), but also seeing this if I run via rhub functions (rhub::check_on_debian())

@gaborcsardi
Copy link
Collaborator

What's the output of this?

curl::curl_fetch_memory("https://builder.r-hub.io/api/platform/list")

@markjrieke
Copy link
Author

Here's what I'm seeing:

curl::curl_fetch_memory("https://builder.r-hub.io/api/platform/list")
#> $url
#> [1] "https://builder.r-hub.io/api/platform/list"
#> 
#> $status_code
#> [1] 403
#> 
#> $type
#> [1] "text/html"
#> 
#> $headers
#>   [1] 48 54 54 50 2f 31 2e 31 20 34 30 33 20 46 6f 72 62 69 64 64 65 6e 0d 0a 53
#>  [26] 65 72 76 65 72 3a 20 43 69 73 63 6f 20 55 6d 62 72 65 6c 6c 61 0d 0a 44 61
#>  [51] 74 65 3a 20 53 75 6e 2c 20 32 37 20 41 75 67 20 32 30 32 33 20 31 35 3a 30
#>  [76] 38 3a 35 31 20 47 4d 54 0d 0a 43 6f 6e 74 65 6e 74 2d 54 79 70 65 3a 20 74
#> [101] 65 78 74 2f 68 74 6d 6c 0d 0a 54 72 61 6e 73 66 65 72 2d 45 6e 63 6f 64 69
#> [126] 6e 67 3a 20 63 68 75 6e 6b 65 64 0d 0a 43 6f 6e 6e 65 63 74 69 6f 6e 3a 20
#> [151] 6b 65 65 70 2d 61 6c 69 76 65 0d 0a 0d 0a
#> 
#> $modified
#> [1] NA
#> 
#> $times
#>      redirect    namelookup       connect   pretransfer starttransfer 
#>      0.000000      0.117574      0.196209      0.381192      0.588524 
#>         total 
#>      0.588580 
#> 
#> $content
#>   [1] 3c 68 74 6d 6c 3e 3c 68 65 61 64 3e 3c 73 63 72 69 70 74 20 74 79 70 65 3d
#>  [26] 22 74 65 78 74 2f 6a 61 76 61 73 63 72 69 70 74 22 3e 6c 6f 63 61 74 69 6f
#>  [51] 6e 2e 72 65 70 6c 61 63 65 28 22 68 74 74 70 73 3a 2f 2f 62 6c 6f 63 6b 2e
#>  [76] 6f 70 65 6e 64 6e 73 2e 63 6f 6d 2f 3f 75 72 6c 3d 36 37 38 36 37 34 37 37
#> [101] 36 39 37 30 38 33 31 35 38 33 31 34 37 33 38 36 36 37 31 35 37 34 38 30 31
#> [126] 36 36 36 38 31 37 34 31 36 38 31 37 37 36 36 38 35 37 31 38 30 38 33 37 38
#> [151] 31 36 37 37 37 34 38 34 38 35 26 73 65 72 76 65 72 3d 64 66 77 31 30 26 70
#> [176] 72 65 66 73 3d 26 74 61 67 67 69 6e 67 3d 26 6e 72 65 66 22 29 3b 3c 2f 73
#> [201] 63 72 69 70 74 3e 3c 2f 68 65 61 64 3e 3c 2f 68 74 6d 6c 3e 20 20 20 20 20
#> [226] 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
#> [251] 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
#> [276] 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
#> [301] 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
#> [326] 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
#> [351] 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
#> [376] 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
#> [401] 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
#> [426] 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
#> [451] 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
#> [476] 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
#> [501] 20 20 20 20 20 20 20 20 20 20 20 20 20 0a

Created on 2023-08-27 with reprex v2.0.2

@gaborcsardi
Copy link
Collaborator

Are you behind a proxy? Can you open https://builder.r-hub.io/api/platform/list in your browser?

What is the output of these?

curl::parse_headers_list(curl::curl_fetch_memory(
  "https://builder.r-hub.io/api/platform/list"
)$headers)
jsonlite::fromJSON(rawToChar(curl::curl_fetch_memory(
  "https://builder.r-hub.io/api/platform/list"
)$content))

@markjrieke
Copy link
Author

ah --- that looks like the issue. I'm on a work computer, but not connected to the the vpn. It looks like they've added rhub as a blocked site (even off-network) since the last time I had run checks on the platform!

image

I appreciate all the help here! I'll reach out to our IT dept. to get resolved. Thanks again for your help & for maintaining rhub!

(for completeness, here's the output from the two calls you mention above)

curl::parse_headers_list(curl::curl_fetch_memory(
  "https://builder.r-hub.io/api/platform/list"
)$headers)
#> $server
#> [1] "Cisco Umbrella"
#> 
#> $date
#> [1] "Sun, 27 Aug 2023 15:29:19 GMT"
#> 
#> $`content-type`
#> [1] "text/html"
#> 
#> $`transfer-encoding`
#> [1] "chunked"
#> 
#> $connection
#> [1] "keep-alive"

Created on 2023-08-27 with reprex v2.0.2

jsonlite::fromJSON(rawToChar(curl::curl_fetch_memory(
  "https://builder.r-hub.io/api/platform/list"
)$content))
#> Error: lexical error: invalid char in json text.
#>                                        <html><head><script type="text/
#>                      (right here) ------^

Created on 2023-08-27 with reprex v2.0.2

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

2 participants