Open bakaburg1 opened 1 year ago
Running into the same issue :(
if you try and manually browse to http://localhost:9222/json/new on chrome it says:
"Using unsafe HTTP verb GET to invoke /json/new. This action supports only PUT verb."
So I guess the chrome API has changed?
If you look at the backtrace:
▆
1. └─chrome$connect()
2. └─self$connectToNewTab(callback = callback)
3. └─crrri::new_tab(...)
4. └─crrri:::fetch_json(host, port, secure, "new", url)
fetch_json
calls jsonlite::fromJSON which itself gets the URL using base::url which does a GET and not a PUT. So if this is the issue it is a bit cumbersome to change.
I did have a play and create a crrri:::fetch_json_PUT
and modified jsonlite to have a fromJSON_PUT
and it did then get past that error. Everything then worked but clearly this isn't a good long-term solution. A solution would be to not use fromJSON if a put is needed.
我在使用 java cdp4j 时使用 Session.create()也遇到了这个问题 : (
我在使用 java cdp4j 时使用 Session.create()也遇到了这个问题 : ( 有时候没问题, 有时候有问题
Hello,
I used to use crrri in the past and it worked well. Now I'm running a function written with it after some time and I get the following error:
cannot open URL 'http://localhost:9222/json/new': HTTP status was '405 Method Not Allowed'
My function is the following:
it is run like this:
I used it the last time successfully a couple of years ago