Open TaffyJSA opened 1 year ago
@TaffyJSA
Problem 1 - I'm not sure what the issue is without having more context. What line of code is actually throwing the error? If I had to guess this sounds like an issue with the configuration of your QR scanner?
Problem 2 - I'm guessing the txn you're using for createHotspot
is empty or undefined. Can you confirm?
@matthewcarlreetz
Problem 1 - I will solve it and it makes sense that the config is wrong.
Problem 2 - Caught the error in try - catch and this is the log:
LOG Error creating hotspot: TypeError: undefined is not an object (evaluating 'createTxns.data')
I have a txn which is not empty or undefined:
CrwBCiEBL6P0TZ3x0E9eovtBSc2F+agIOUDPhe9WZu64ZhwYlUwSIQCvOCMz7y0VubLMJm+GxLOf2cAzF2VuggnZ4oCDr26rtSJIMEYCIQC1zClIaLJJuhvrQ1NTYCCAH5MTojZx8DRJ+YMnprBJXAIhAPTCMjsZkCr2QcbHxenKGDlJjajtQQ/z0L3a/UfmVK3tKiEB8ruYwDgG7SYzp783zVZ41tMQV2DKjgDmDkyCw9CMxrM4gJL0AUDo+wM=
What could be the problem?
Thank you for throwing insight into the first problem!
Also, I got this error in some lines below
Error getting onboarding transactions: TypeError: undefined is not an object (evaluating 'or.errorMessage')
At this part:
`
try{
const { solanaTransactions, addGatewayTxn, assertLocationTxn } =
await getOnboardTransactions({
txn: params.addGatewayTxn,
hotspotAddress: '14neTgRNZui1hSiHgE3LXjSfwkPU8BEB192MLXXDFnSY2xKjH51',
hotspotTypes,
lat: last(params.coords),
lng: first(params.coords),
elevation: params.elevation,
decimalGain: params.gain,
})
console.log('Solana transactions: ' + solanaTransactions)
navToHeliumAppForSigning({
onboardTransactions: solanaTransactions,
addGatewayTxn,
assertLocationTxn,
})
}catch (e) {
console.log('Error getting onboarding transactions: ' + e)
}
`
Also for the hotspot address, should I use this one (the current in the code above) or the old one - (138LbePH4r7hWPuTnK6HXVJ8ATM2QU71iVHzLTup1UbnPDvbxmr)?
Hello,
I would like to ask for guidance on how can I solve the problems mentioned below.
Setup:
Problems:
[TypeError: undefined is not an object (evaluating '_ref3.success')]
Possible Unhandled Promise Rejection (id: 0): TypeError: undefined is not an object (evaluating 'createTxns.data')
And the hotspot is not registered, it doesn't even redirect me to the wallet as it did. Also, I don't know where to look for the failed pending transactions. Before it was this place: Failed Pending Transactions But now where I can look for them? Additionally, I can see some failed pending transactions on this old place.
Thank you for your time!
Kind regards!