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) ...
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)
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
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)