This
const impit = new Impit();
const resp = await impit.fetch('https://faq.interlink.or.jp/faq2/View/wcDisplayContent.aspx?sso_step=1&id=737');
console.log(await resp.text());
results in
[Error: impit error: The internal HTTP library has thrown an error:
reqwest::Error {
kind: Request,
source: hyper_util::client::legacy::Error(
Connect,
Custom {
kind: Other,
error: Os {
code: 104,
kind: ConnectionReset,
message: "Connection reset by peer",
},
},
),
}] {
code: 'GenericFailure'
}
while with
const impit = new Impit({
+ browser: 'firefox'
});
this results in
Error: impit error: The internal HTTP library has thrown an error:
reqwest::Error {
kind: Request,
source: hyper_util::client::legacy::Error(
Connect,
Custom {
kind: Other,
+ error: Custom {
+ kind: InvalidData,
+ error: PeerMisbehaved(
+ SelectedUnusableCipherSuiteForVersion,
+ ),
+ },
},
),
}] {
code: 'GenericFailure'
}
This
results in
while with
const impit = new Impit({ + browser: 'firefox' });this results in
Error: impit error: The internal HTTP library has thrown an error: reqwest::Error { kind: Request, source: hyper_util::client::legacy::Error( Connect, Custom { kind: Other, + error: Custom { + kind: InvalidData, + error: PeerMisbehaved( + SelectedUnusableCipherSuiteForVersion, + ), + }, }, ), }] { code: 'GenericFailure' }