Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

Asset locking function generates JS error #775

Closed
daxxog opened this issue Mar 18, 2016 · 12 comments
Closed

Asset locking function generates JS error #775

daxxog opened this issue Mar 18, 2016 · 12 comments
Labels

Comments

@daxxog
Copy link

daxxog commented Mar 18, 2016

I own the token DARKCLAM and would like to lock the issuance. How would I go about doing that?

I hit "Lock Token Issuance" and it throws this error in the console on Chrome: (Also not working on Safari and Firefox)

Uncaught TypeError: onError is not a function(anonymous function)
@ counterwallet-min.js?v=bdaab26f0f42:35(anonymous function)
@ counterwallet-min.js?v=bdaab26f0f42:35(anonymous function)
@ counterwallet-min.js?v=bdaab26f0f42:13setTimeout (async)_delay
@ counterwallet-deps-min.js?v=e832848b6cf8:461CWPrivateKey.checkAndSignRawTransaction
@ counterwallet-min.js?v=bdaab26f0f42:13WalletViewModel.self.signAndBroadcastTxRaw
@ counterwallet-min.js?v=bdaab26f0f42:35WalletViewModel.self.signAndBroadcastTx
@ counterwallet-min.js?v=bdaab26f0f42:35(anonymous function)
@ counterwallet-min.js?v=bdaab26f0f42:35(anonymous function)
@ counterwallet-min.js?v=bdaab26f0f42:15gatheredResults.push.success
@ counterwallet-min.js?v=bdaab26f0f42:15ajaxOpts.success
@ counterwallet-min.js?v=bdaab26f0f42:15l
@ counterwallet-deps-min.js?v=e832848b6cf8:10c.fireWith
@ counterwallet-deps-min.js?v=e832848b6cf8:10k
@ counterwallet-deps-min.js?v=e832848b6cf8:12(anonymous function)
@ counterwallet-deps-min.js?v=e832848b6cf8:12XMLHttpRequest.send (async)x.support.cors.e.crossDomain.send
@ counterwallet-deps-min.js?v=e832848b6cf8:12x.extend.ajax
@ counterwallet-deps-min.js?v=e832848b6cf8:12fetchData
@ counterwallet-min.js?v=bdaab26f0f42:15makeJSONRPCCall
@ counterwallet-min.js?v=bdaab26f0f42:15_makeJSONAPICall
@ counterwallet-min.js?v=bdaab26f0f42:15_multiAPIPrimative
@ counterwallet-min.js?v=bdaab26f0f42:15multiAPIConsensus
@ counterwallet-min.js?v=bdaab26f0f42:15WalletViewModel.self.doTransaction
@ counterwallet-min.js?v=bdaab26f0f42:35bootbox.dialog.buttons.danger.callback
@ counterwallet-min.js?v=bdaab26f0f42:41processCallback
@ counterwallet-deps-min.js?v=e832848b6cf8:297(anonymous function)
@ counterwallet-deps-min.js?v=e832848b6cf8:297x.event.dispatch
@ counterwallet-deps-min.js?v=e832848b6cf8:11y.handle
@ counterwallet-deps-min.js?v=e832848b6cf8:11

Difficult for me to figure out what the error means due to minification, but maybe one of the developers here could help me? I'm on the official counterwallet server.

@unsystemizer
Copy link
Contributor

Can you try in "private" mode, without any extensions?
I just tried on testnet.counterwallet.io and it worked fine for me in Opera

@daxxog
Copy link
Author

daxxog commented Mar 20, 2016

Still got the same "TypeError: onError is not a function" on Chrome (latest) in incognito mode. I'll test on Opera private tommorow.

@daxxog
Copy link
Author

daxxog commented Mar 22, 2016

Tested on Opera (latest version on Mac) in private mode. Still getting the same "Uncaught TypeError: onError" error.

@unsystemizer
Copy link
Contributor

Have you tried on Coindaddy's CW, by any chance?

@daxxog
Copy link
Author

daxxog commented Mar 23, 2016

Coindaddy is currently down, but I did test on it earlier and got the same results.
screen shot 2016-03-23 at 9 34 53 am

@unsystemizer
Copy link
Contributor

I tried on the official CW before on testnet and few hours ago on mainnet (using a free asset), it works for me.

https://www.dropbox.com/s/9gsbeo71bib3j59/lock-tocken-issuance.mp4?dl=0

@daxxog
Copy link
Author

daxxog commented Mar 26, 2016

Still not working for me. Tried four different browsers. Tried "private" mode on all browsers. Tried coindady mirror. Nothing is working for me.
screen shot 2016-03-25 at 10 19 31 pm

@unsystemizer
Copy link
Contributor

@robby-dermody could it be something specific to the wallet cache?

@daxxog
Copy link
Author

daxxog commented Apr 18, 2016

Is there any possible way for me to "manually" sign/broadcast a bitcoin transaction that can lock my token for me?

@robby-d robby-d added the bug label Apr 18, 2016
@robby-d robby-d changed the title Can't lock my token. Asslet locking function generates JS error Apr 18, 2016
@robby-d
Copy link
Contributor

robby-d commented Apr 18, 2016

This is probably a bug with counterwallet. If you have counterparty-client you can lock it. You'd send an issuance command with the description set to LOCK (https://github.com/CounterpartyXCP/counterparty-cli/blob/master/counterpartycli/client.py#L103). If you have that, we can help further there. I will try to fix this bug when I have the time

@daxxog daxxog changed the title Asslet locking function generates JS error Asset locking function generates JS error Apr 21, 2016
@robby-d
Copy link
Contributor

robby-d commented Jun 25, 2016

this may be fixed with the update we just made (4ff9b2f) ....i.e. could have been an underlying bitcore tx validation issue, looking at that traceback

this update will be live on new CW servers in a few days

@robby-d
Copy link
Contributor

robby-d commented Jun 26, 2016

update going live today. I tested locking an asset on testnet and it worked. please reopen this if still an issue

@robby-d robby-d closed this as completed Jun 26, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants