Failed to execute 'fetch' on 'Window': Request with GET/HEAD method cannot have body

I found a way to fix it but don’t know why it behavior like this, it used to work before

My code used useAgent from IdentityKit
now I changed to this code

import { useIdentity } from "@nfid/identitykit/react";

 const identity = useIdentity();
  const agent = HttpAgent.createSync({
      host: DEFAULT_ICP_URL,
      identity: identity,
  });

1 Like