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

RShiny shuts down after POST request with multipart encoding #179

Open
hunglin59638 opened this issue Dec 27, 2024 · 0 comments
Open

RShiny shuts down after POST request with multipart encoding #179

hunglin59638 opened this issue Dec 27, 2024 · 0 comments

Comments

@hunglin59638
Copy link

I operate an R Shiny app that includes a button capable of triggering an API to send a POST request (using httr) with multipart encoding. However, it shuts down after the execution is completed.

    response <- POST(
        url = url,
        body = body, encode = "multipart", verbose()
    )

faucet start --dir . --host 0.0.0.0:6209 --workers 4

ui-1  | [2024-12-27T09:44:10Z INFO  Worker::3] 192.168.3.197 "POST /session/a9f143d81a9dbed2aec2fc55b7e3944f/dataobj/db_metadata?w=&nonce=b82bde8165e32c56 HTTP/1.1" 200 "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36" 127
ui-1  | [2024-12-27T09:44:19Z INFO  Worker::3] 192.168.3.197 "POST /session/a9f143d81a9dbed2aec2fc55b7e3944f/upload/72e7dd3b26e8d0e1c89d209e?w= HTTP/1.1" 200 "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36" 103
ui-1  | [2024-12-27T09:44:21Z WARN  Worker::3] -> POST /receive HTTP/1.1
ui-1  | [2024-12-27T09:44:21Z WARN  Worker::3] -> Host: db:14582
ui-1  | [2024-12-27T09:44:21Z WARN  Worker::3] -> User-Agent: libcurl/8.9.1 r-curl/5.2.1 httr/1.4.7
ui-1  | [2024-12-27T09:44:21Z WARN  Worker::3] -> Accept-Encoding: deflate, gzip, zstd
ui-1  | [2024-12-27T09:44:21Z WARN  Worker::3] -> Accept: application/json, text/xml, application/xml, */*
ui-1  | [2024-12-27T09:44:21Z WARN  Worker::3] -> Content-Length: 12579
ui-1  | [2024-12-27T09:44:21Z WARN  Worker::3] -> Content-Type: multipart/form-data; boundary=------------------------KpVFtJiPZN8YhZOGt9RSaj
ui-1  | [2024-12-27T09:44:21Z WARN  Worker::3] ->
ui-1  | [2024-12-27T09:44:21Z WARN  Worker::3] >> --------------------------KpVFtJiPZN8YhZOGt9RSaj
ui-1  | [2024-12-27T09:44:21Z WARN  Worker::3] >> Content-Disposition: form-data; name="exp_arrival_time"
ui-1  | [2024-12-27T09:44:21Z WARN  Worker::3] >>
ui-1  | [2024-12-27T09:44:21Z WARN  Worker::3] >> 2024-12-27 17:44
ui-1  | [2024-12-27T09:44:21Z WARN  Worker::3] >> --------------------------KpVFtJiPZN8YhZOGt9RSaj
ui-1  | [2024-12-27T09:44:21Z WARN  Worker::3] >> Content-Disposition: form-data; name="receive_time"
ui-1  | [2024-12-27T09:44:21Z WARN  Worker::3] >>
ui-1  | [2024-12-27T09:44:21Z ERROR faucet] Worker::3's process (58) exited with status signal: 13 (SIGPIPE)
ui-1  | [2024-12-27T09:44:21Z INFO  faucet] Starting process 576 for Worker::3 on port 42160
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

1 participant