metaplex icon indicating copy to clipboard operation
metaplex copied to clipboard

[1] Failed to pack instruction data

Open k6c8e4 opened this issue 2 years ago • 7 comments

Hi everyone,

The question is "What I'm doing wrong?" and getting the error code [1] Failed to pack instruction data.

First of all I'm using uploadMetadata method to upload a image file and get the uri, and it's working well as we can see: image This is the result of uploadMetadata method, used as shown in readme documentation: image

after this step, I'm grabbing uri and use it to call "create" method like this: image

where the uri is the result of uploadMetadata.

in this process I'm signing the transaction, and after that I'm getting the error. Transaction when run create: image

The error: image

Maybe it's a duplicated topic, but I can't find any opened/closed issue on this error code. Thank you a lot, thank you in advance.

k6c8e4 avatar Nov 02 '22 14:11 k6c8e4

I have the same issue, can't find a workaround at-least...

inartin avatar Nov 02 '22 14:11 inartin

Facing the same issue, have been looking for some kind of reference for 2 days. Would really appreciate any help from the community here.

buncy avatar Nov 03 '22 09:11 buncy

I'm facing the same issue while minting the nft using the code below on "@metaplex-foundation/js": "0.17.4",

metaplex.nfts()
            .create({uri:"metadata-url.json", name:"nft-name",sellerFeeBasisPoints: 200, creators:[{address:"creator-1", share:0}, {address:"creator-2", share:70}, {address:"creator-3", share:30}]})

The error:

21:51:25.000
>> Source: Program > TokenMetadataProgram [metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s]
 
21:51:25.000
>> Problem: The program [TokenMetadataProgram] at address [metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s] raised an error of code [1] that translates to "Failed to pack instruction data".
 
21:51:25.000
>> Solution: Check the error message provided by the program.
 
21:51:25.000
 
21:51:25.000
Caused By: InstructionPackError: Failed to pack instruction data

awadhwana avatar Nov 03 '22 09:11 awadhwana

Facing same issue - MetaplexError: TokenMetadataProgram > Failed to pack instruction data Source: Program > TokenMetadataProgram [metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s] Problem: The program [TokenMetadataProgram] at address [metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s] raised an error of code [1] that translates to "Failed to pack instruction data". Solution: Check the error message provided by the program. Caused By: InstructionPackError: Failed to pack instruction data

theravikiran avatar Nov 03 '22 09:11 theravikiran

Facing the same issue. It was running yesterday, but it broke today. Not sure the reason here. image

mastercodercat avatar Nov 03 '22 09:11 mastercodercat

I also recently started getting the "TokenMetadataProgram > Failed to pack instruction data" error. Any help would be appreciated

invodismo avatar Nov 04 '22 17:11 invodismo

I'm facing the same issue while minting the nft using the code below on "@metaplex-foundation/js": "0.17.4",

metaplex.nfts()
            .create({uri:"metadata-url.json", name:"nft-name",sellerFeeBasisPoints: 200, creators:[{address:"creator-1", share:0}, {address:"creator-2", share:70}, {address:"creator-3", share:30}]})

The error:

21:51:25.000
>> Source: Program > TokenMetadataProgram [metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s]
 
21:51:25.000
>> Problem: The program [TokenMetadataProgram] at address [metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s] raised an error of code [1] that translates to "Failed to pack instruction data".
 
21:51:25.000
>> Solution: Check the error message provided by the program.
 
21:51:25.000
 
21:51:25.000
Caused By: InstructionPackError: Failed to pack instruction data

The solution was very silly, but here is what worked. While minting I had 0.0xxx SOL in the wallet, making the balance about 1 sol did the job! The confusing part is when I had no SOL in the wallet it gave me a clear error that I don't have the required lamports but not when I had some which were insufficient.

awadhwana avatar Nov 09 '22 07:11 awadhwana