We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SDK version: "@bnb-chain/greenfield-js-sdk": "^2.0.0", "@bnb-chain/reed-solomon": "^1.1.3",
Environment:
What happened:
I found that greenfield-js-sdk has a problem when uploading json files to Object. Only json files have this problem, other files are normal
I use this method to build https://github.com/bnb-chain/greenfield-js-sdk/tree/main/packages/reed-solomon#nodejs
const { ReedSolomon } = require('@bnb-chain/reed-solomon') const rs = new ReedSolomon(); const res = await rs.encode(Uint8Array.from(fileBuffer));
When I upload Object, it will prompt me { code: '110004', message: 'invalid payload data integrity hash', statusCode: 406 } https://github.com/HelloRickey/greenfield-test/blob/main/index.js#L97
{ code: '110004', message: 'invalid payload data integrity hash', statusCode: 406 }
But when I use Nodejs (worker_threads) it will succeed https://github.com/HelloRickey/greenfield-test/blob/main/index.js#L21
The text was updated successfully, but these errors were encountered:
Sorry, we didn't update the example in time.
After 2.x, we don't need to compute hashes anymore, just use delegateUploadObject : https://github.com/bnb-chain/greenfield-js-sdk/blob/main/packages/js-sdk/tests/upload.spec.ts#L26
2.x
delegateUploadObject
ref PR: #500
Sorry, something went wrong.
Hey @rrr523 , I use delegateUploadObject, but it still doesn't work for json files and prompts new problems. #539
No branches or pull requests
SDK version:
"@bnb-chain/greenfield-js-sdk": "^2.0.0",
"@bnb-chain/reed-solomon": "^1.1.3",
Environment:
What happened:
I found that greenfield-js-sdk has a problem when uploading json files to Object. Only json files have this problem, other files are normal
I use this method to build https://github.com/bnb-chain/greenfield-js-sdk/tree/main/packages/reed-solomon#nodejs
const { ReedSolomon } = require('@bnb-chain/reed-solomon') const rs = new ReedSolomon(); const res = await rs.encode(Uint8Array.from(fileBuffer));
When I upload Object, it will prompt me
{ code: '110004', message: 'invalid payload data integrity hash', statusCode: 406 }
https://github.com/HelloRickey/greenfield-test/blob/main/index.js#L97
But when I use Nodejs (worker_threads)
it will succeed
https://github.com/HelloRickey/greenfield-test/blob/main/index.js#L21
The text was updated successfully, but these errors were encountered: