Hello Community,
I’m relatively new to DApp development and I’ve hit a roadblock. I’m trying to connect my frontend to the backend of my DApp, and I’ve run into an error that I can’t seem to figure out.
Issue Details:
When I attempt to connect my frontend to the backend, I receive the following error in my console:
Here’s the error output for reference:
ERROR
Server returned an error:
Code: 400 ()
Body: subnet_not_found
AgentHTTPResponseError<http://localhost:8080/index.js:322:9
_requestAndRetry<http://localhost:8080/index.js:711:15
... (additional error lines) ...
Thank you all in advance for your support and understanding.
Can you show the output of dfx start
with debug output? That would be dfx start --clean -vv
when i enter dfx deploy then
Uncaught (in promise) Error: Invalid certificate: Invalid signature from replica 3emtc-qvxqg-2q7y6-n5jwy-if4ky-3mjz2-ucgaf-hdh3v-46opc-vz5vj-3qe signed query.
AgentError http://127.0.0.1:4943/index.js:2438
CertificateVerificationError http://127.0.0.1:4943/index.js:1909
node_modules dfinity/agent/lib/esm/agent/http/index.js/HttpAgent/</<@http://127.0.0.1:4943/index.js:532
node_modules dfinity/agent/lib/esm/agent/http/index.js/HttpAgent/<@http://127.0.0.1:4943/index.js:494
query http://127.0.0.1:4943/index.js:789
its coming
how can i set this one {verifyQuerySignatures: false}
i got that sir,
my problem is where can i get that file to edit
or need to add directly in the js file
I am facing exactly the same issue. Would love to know in which file do I have to make the change as you suggested?
Experiencing the same problem:
ERROR
Server returned an error:
Code: 400 ()
Body: subnet_not_found
AgentHTTPResponseError: Server returned an error:
Code: 400 ()
Body: subnet_not_found
at HttpAgent._requestAndRetry (http://localhost:8080/index.js:711:15)
at async HttpAgent._requestAndRetry (http://localhost:8080/index.js:709:20)
at async HttpAgent._requestAndRetry (http://localhost:8080/index.js:709:20)
at async HttpAgent._requestAndRetry (http://localhost:8080/index.js:709:20)
at async makeQuery (http://localhost:8080/index.js:748:30)
at async Promise.all (index 0)
at async HttpAgent.query (http://localhost:8080/index.js:769:39)
at async caller (http://localhost:8080/index.js:199:28)
at async HTMLFormElement.<anonymous> (http://localhost:8080/index.js:21530:20)
1 Like
verifyQuerySignatures: false
goes into the option object that you feed into HttpAgent()
I have tried it without success.
This occur in this context:
I’m at the end of my JS skills. @peterparker do you maybe know the next step to try?
bro try using dfx 0.15.2-beta.2
there is a sample repo I can checkout to try to reproduce the issue?
dfx upgrade gives version: 0.15.1 as the latest.
DFX_VERSION=0.15.2-beta.2 sh -ci "$(curl -fsSL https://internetcomputer.org/install.sh)"
try this bro
dfx start --clean
Running dfx start for version 0.15.2-beta.2
Using the default definition for the ‘local’ shared network because My_Directory/.config/dfx/networks.json does not exist.
My_Directory/.cache/dfinity/versions/0.15.2-beta.2/ic-https-outcalls-adapter: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory
Change your auto generated package.json dependensies:
“dependencies”: {
“@dfinity/agent”: “^0.20.1”,
“@dfinity/candid”: “^0.20.1”,
“@dfinity/principal”: “^0.20.1”
}
To a lower versions as follows:
“dependencies”: {
“@dfinity/agent”: “^0.17.0”,
“@dfinity/candid”: “^0.17.0”,
“@dfinity/principal”: “^0.17.0”,
“react”: “^18.2.0”
}
Then rerun the npm i this should work
downgrading the dependencies is working fine
Can’t believe that I land on that same problem too…
Agent-js v0.19.3 + dfx 0.15.1
mr: Server returned an error:
Code: 400 ()
Body: subnet_not_found
at t._requestAndRetry (http://localhost:5173/node_modules/.vite/deps/@junobuild_core.js?v=70ccfa5d:1723:11)
at async t._requestAndRetry (http://localhost:5173/node_modules/.vite/deps/@junobuild_core.js?v=70ccfa5d:1722:55)
at async t._requestAndRetry (http://localhost:5173/node_modules/.vite/deps/@junobuild_core.js?v=70ccfa5d:1722:55)
at async t._requestAndRetry (http://localhost:5173/node_modules/.vite/deps/@junobuild_core.js?v=70ccfa5d:1722:55)
at async t.query (http://localhost:5173/node_modules/.vite/deps/@junobuild_core.js?v=70ccfa5d:1731:29)
at async a (http://localhost:5173/node_modules/.vite/deps/@junobuild_core.js?v=70ccfa5d:1961:144)
at async Gi (http://localhost:5173/node_modules/.vite/deps/@junobuild_core.js?v=70ccfa5d:2706:31)
at async Promise.all (index 1)
at async sync (http://localhost:5173/src/lib/workers/worker.ts?type=module&worker_file:63:33)
at async execute (http://localhost:5173/src/lib/workers/worker.ts?type=module&worker_file:31:31)