@sea-snake Tried syncTime still getting same error on upload.
here is relevant part of my code:
this.agent = new HttpAgent({ identity: this.identity, host: AGENT_HOST });
await this.agent.fetchRootKey();
await this.agent.syncTime();
with syncTime this error is thrown:
Caught exception while attempting to sync time: AgentError: Invalid certificate: Signature verification failed
& on big file uploads, error remains the same: 400 (Bad Request)
Also, small files are getting uploaded successfully, no issue with that. after uploading of 1 MB file, i used list from @dfinity/asset & got uploaded files listed.
Update :
looks like Invalid certificate error is not caused by syncTime and i’m not facing it anymore. it seems to be related to this thread.
but even after syncTime the 400 error is still there:
Code: 400 (Bad Request)
Body: Expiry is 35 seconds in the past