Skip to content
New issue

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

https send tx fails with wallet v1.0.3 #2842

Closed
bladedoyle opened this issue May 24, 2019 · 5 comments
Closed

https send tx fails with wallet v1.0.3 #2842

bladedoyle opened this issue May 24, 2019 · 5 comments

Comments

@bladedoyle
Copy link
Contributor

bladedoyle commented May 24, 2019

Describe the bug
After updating from v1.0.2 to v1.0.3 I am unable to make deposits to https addresses of both hotbit and gate.io exchanges. For both of these exchanges deposits using commandline wallet v1.0.2 succeeds and deposits using v1.0.3 fails.

To Reproduce
Steps to reproduce the behavior:

  1. create an account on hotbit and gate.io exchanges
  2. use grin wallet v1.0.3 to send grin to https deposit address

Relevant Information
I am including the debug wallet logs for both exchanges failure cases. Its a lot of log messages so I am including them below. Please request the logs for the success case (using wallet v1.0.2) if needed.

Desktop (please complete the following information):
Linux.

Additional context
I filed support tickets with both hotbit and gate.io to check for problems on their side, but since there are two cases of failure the issue may be with grin wallet v1.0.3.

HotBit wallet logs ---- FAILURE CASE - Using grin wallet v1.0.3

20190524 15:18:39.190 INFO grin_util::logger - log4rs is initialized, file level: Debug, stdout level: Warn, min. level: Debug
20190524 15:18:39.190 INFO grin - Using wallet configuration file at /home/grin/grin-wallet.toml
20190524 15:18:39.191 INFO grin - This is Grin version 1.0.3 (git v1.0.3), built for x86_64-unknown-linux-gnu by rustc 1.32.0 (9fda7c223 2019-01-16).
20190524 15:18:39.191 DEBUG grin - Built with profile "debug", features "".
20190524 15:18:41.515 DEBUG grin_wallet::types - Using wallet seed file at: /blockchains/grin/main/wallet_data/wallet.seed
20190524 15:18:41.527 INFO grin_wallet - Using LMDB Backend for wallet
20190524 15:18:41.528 DEBUG grin_wallet::types - Using wallet seed file at: /blockchains/grin/main/wallet_data/wallet.seed
20190524 15:18:41.586 DEBUG grin_wallet::libwallet::internal::updater - Refreshing wallet outputs
20190524 15:18:41.819 DEBUG grin_core::libtx::build - Building input (spending regular output): 2875742249, 0300000000000000000000006300000000
20190524 15:18:41.819 DEBUG grin_wallet::libwallet::internal::selection - Building change outputs: total change: 1867742249 (1 outputs)
20190524 15:18:41.847 DEBUG grin_core::libtx::build - Building output: 1867742249, Commitment(0873012715175225eca7712c63e9a2a1c830a9faecef0ed933e146a484e8b3c56a)
20190524 15:18:42.076 INFO grin_wallet::command - Tx created: 1.000000000 grin to https://grin.hotbit.io/xxxx (strategy 'smallest')
20190524 15:18:42.076 DEBUG grin_wallet::adapters::http - Posting transaction slate to https://grin.hotbit.io/xxxx/v1/wallet/foreign/receive_tx
20190524 15:18:42.458 ERROR grin_wallet::adapters::http - Posting transaction slate (is recipient listening?): ResponseError error: Cannot parse response

gate.io wallet logs ---- FAILURE CASE - Using grin wallet v1.0.3

20190524 16:06:15.487 INFO grin_util::logger - log4rs is initialized, file level: Debug, stdout level: Warn, min. level: Debug
20190524 16:06:15.487 INFO grin - Using wallet configuration file at /home/grin/grin-wallet.toml
20190524 16:06:15.487 INFO grin - This is Grin version 1.0.3 (git v1.0.3), built for x86_64-unknown-linux-gnu by rustc 1.32.0 (9fda7c223 2019-01-16).
20190524 16:06:15.487 DEBUG grin - Built with profile "debug", features "".
20190524 16:06:17.901 DEBUG grin_wallet::types - Using wallet seed file at: /blockchains/grin/main/wallet_data/wallet.seed
20190524 16:06:17.904 INFO grin_wallet - Using LMDB Backend for wallet
20190524 16:06:17.904 DEBUG grin_wallet::types - Using wallet seed file at: /blockchains/grin/main/wallet_data/wallet.seed
20190524 16:06:17.977 DEBUG grin_wallet::libwallet::internal::updater - Refreshing wallet outputs
20190524 16:06:18.174 DEBUG grin_core::libtx::build - Building input (spending regular output): 1867742249, 0300000000000000000000006500000000
20190524 16:06:18.175 DEBUG grin_wallet::libwallet::internal::selection - Building change outputs: total change: 1759742249 (1 outputs)
20190524 16:06:18.202 DEBUG grin_core::libtx::build - Building output: 1759742249, Commitment(084edf0208c3f8bcfd803d09d58f437bad85f4d8096d31c354114350401e143b19)
20190524 16:06:18.516 INFO grin_wallet::command - Tx created: 0.100000000 grin to https://grin.gateio.live/deposit/gateiogrin/xxxx (strategy 'smallest')
20190524 16:06:18.517 DEBUG grin_wallet::adapters::http - Posting transaction slate to https://grin.gateio.live/deposit/gateiogrin/xxxx/v1/wallet/foreign/receive_tx
20190524 16:07:19.663 ERROR grin_wallet::adapters::http - Posting transaction slate (is recipient listening?): Request error: Wrong response code: 502 Bad Gateway with data Body
@bladedoyle
Copy link
Contributor Author

bladedoyle commented May 25, 2019

Note - From the "ironbelly" gitter discussion group:

@xiaojay
May 24 06:26
@hashmap https://github.com/mimblewimble/grin/commit/45d568631072fbd6ae8da31dd183418af7562f93#diff-1ba0421725cb0e5e93523cb69ded4a46
i think the incompatibility is this commit. i comment out it , complied it, then grin 1.0.3 could send to gate
it seems they don not deal with "application/json" http header properly

@bladedoyle
Copy link
Contributor Author

The following patch works around the issue:

sed -i -e 's/\.header(CONTENT_TYPE, "application\/json")//g'  api/src/client.rs

@josephmike2014
Copy link

josephmike2014 commented Jun 10, 2019

I have issue while send Grin to https address.
Source wallet:
./grin-wallet send -d https:// 0.1
Password:
20190610 16:33:18.884 ERROR grin_wallet_impls::adapters::http - Posting transaction slate (is recipient listening?): Request error: Wrong response code: 502 Bad Gateway with data Body
Wallet command failed: LibWallet Error: Client Callback Error: Posting transaction slate (is recipient listening?): Request error: Wrong response code: 502 Bad Gateway with data Body
Target wallet:
in Apache error log:
[Mon Jun 10 16:35:46.927284 2019] [proxy:error] [pid 7244:tid 139861826717440] [client <source_wallet_ip>:54512] AH00898: DNS lookup failure for: 127.0.0.1:3415v1 returned by /v1/wallet/foreign/receive_tx
in Apache access log:
<source_wallet_ip> - - [10/Jun/2019:16:35:46 +0000] "POST /v1/wallet/foreign/receive_tx HTTP/1.1" 502 3954 "-" "grin-client"

My Apache config:

SSLProxyEngine On
ProxyPreserveHost On
ProxyPass / http://127.0.0.1:3415
ProxyPassReverse / http://127.0.0.1:3415

I'm using latest version v1.1.0 for grin & grin-wallet

@josephmike2014
Copy link

josephmike2014 commented Jun 11, 2019

Just an update, the error above is due to missing the "/" at the end of the port, so the configuration should be:

SSLProxyEngine On
ProxyPreserveHost On
ProxyPass / http://127.0.0.1:3415/
ProxyPassReverse / http://127.0.0.1:3415/

My issue is fixed.

@bladedoyle
Copy link
Contributor Author

This is probably no longer relevent. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants