Comments (7)
{
"message": "Unhandled error occurred. If this error persists, please contact Albedo support.",
"code": -1
}
from albedo.
We tested on both Mac and iOS with default values from the playground and everything seems to work well. Could you please try to sign a tx in the implicit mode using the playground UI and let me know if you spot any other problems.
Also, please check the network when you are calling the intent. Session granted for the "testnet" won't be valid for "public" network.
from albedo.
Works fine in the playground. Definitely using the correct network, again works fine on Chrome.
Here's the xdr I'm trying to sign.
AAAAAgAAAABxVBxhMby8zkB3+nXlT1B3bZZVVPACgoyltPaeduz5zAAAASwADeyAAAAAAwAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAABAAAAALPF/AGs1yfqdWWMZk1JKn4K7GXxgtLfw7sIi2atRTuzAAAAAQAAAABxVBxhMby8zkB3+nXlT1B3bZZVVPACgoyltPaeduz5zAAAAAAAAAAAlQL5AAAAAAAAAAAGAAAAAlNRMDAwMQAAAAAAAAAAAABlNnoKbiDR//fMdiS32OpAvBmrJ0C+ioHjsPxq/he1VwAAAAAAAAABAAAAAQAAAABlNnoKbiDR//fMdiS32OpAvBmrJ0C+ioHjsPxq/he1VwAAAAEAAAAAcVQcYTG8vM5Ad/p15U9Qd22WVVTwAoKMpbT2nnbs+cwAAAACU1EwMDAxAAAAAAAAAAAAAGU2egpuINH/98x2JLfY6kC8GasnQL6KgeOw/Gr+F7VXAAAAAAAAAAEAAAAAAAAAAv4XtVcAAABA/Xk0t7kKfmMNBPXoQrPy90jCC4TzaxVijNy+30vj3nF7ae7cqv7117eM3CZJUXTIje01ifGqCyFnXoJxB7AJAa1FO7MAAABAb9rVjTpTAFk2NmesLJhd6b0yKnzqdaZsFBRqJ5+fOXjZ3ewzcMSrYikertxUobDTyQ5g1DmJr8G2phPeXeinAg==
from albedo.
fwiw That XDR works and signs perfectly on the playground. Must be a cross origin popup thing?
from albedo.
async claimPrize(e, key) {
e.preventDefault()
if (!this.user.name)
this.user.name = prompt(`In order to run a compliant competition we need your full name`)
if (!this.user.name)
return
this.error = false
this.loading = {[`claim-${key}`]: true}
let albedoSessionPuk = loFirst(
loMap(loMap(loFilter(loKeys(sessionStorage),
(key) => loStartsWith(key, 'albedo_session_')
), (key) => JSON.parse(sessionStorage.getItem(key))
), ({pubkey}) => pubkey)
)
if (!albedoSessionPuk) albedoSessionPuk = await albedo.implicitFlow({
intents: 'tx',
network: 'testnet'
}).then(({pubkey}) => pubkey)
fetch(`${baseUrl}/prize/submit`, {
method: 'POST',
headers: {
Authorization: `Bearer ${this.session}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
key,
name: this.user.name,
puk: albedoSessionPuk,
})
})
.then(handleResponse)
.then(({xdr}) => {
console.log(albedoSessionPuk)
console.log(xdr)
return albedo.tx({
xdr,
pubkey: albedoSessionPuk,
network: 'testnet',
})
})
.then(({signed_envelope_xdr}) =>
fetch(`${baseUrl}/prize/submit`, {
method: 'POST',
headers: {
Authorization: `Bearer ${this.session}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
key,
name: this.user.name,
puk: albedoSessionPuk,
innerTx: signed_envelope_xdr,
})
})
)
.then(handleResponse)
.then(async () => {
// TODO: Due to latency we need to save the claim status client side
// await this.updateSession()
this.success = {...this.success, [`claim-${key}`]: true}
})
.catch((err) => {
this.error = err
if (err.code === 1)
sessionStorage.removeItem(`albedo_session_${albedoSessionPuk}`)
})
.finally(() => this.loading = {...this.loading, [`claim-${key}`]: false})
}
from albedo.
Hi, I have a similar issue where I am using an iPhone to transfer XLM to a Bitstamp account and the transaction never gets validated. Is there anyone who could help me here? Thanks in advance.
from albedo.
from albedo.
Related Issues (20)
- Feature request: Custom description on operations
- Assets are not in lexicographic order HOT 2
- new BigNumber() not a number: 0aN HOT 1
- Creating liquidity pool fails HOT 1
- Balances page fails when you have trustline to liquidity pool with 0 balance HOT 1
- Swap page: currency rate wrong label
- Memo attach bug in Albedo HOT 1
- "Assets are not in lexicographic order" adding liquidity to tokens with Alphanumeric 12 and 4 (mixed) HOT 2
- Get public key on testnet HOT 3
- when sending to an unfunded wallet albedo fails HOT 1
- Let sign option back instead of confirm
- Alebdo caches key used
- Allow funding of new wallets
- Add Tradeable balance to Trading Tab + other changes
- Add Simplified Chinese translation
- Unable to login on mobile browser
- WalletConnect fails to pair. HOT 1
- How to add liquidity in new version?
- Sign with direct secret key not working
- Incorrect view of trades
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from albedo.