blockchain / service-my-wallet-v3

Blockchain Wallet API Service
https://blockchain.info/api/blockchain_wallet_api
GNU Affero General Public License v3.0
910 stars 518 forks source link

Callback parameter is not URL encoded #436

Open ubaidsaeed opened 4 years ago

ubaidsaeed commented 4 years ago

Hello i am creating an app in asp.net mvc and use receive api it working fine but From last week i am not able to send request to blockchain api it shows an bad request error after debugging it show callback url not encoded. Kindly help i am not able to solve this issue. I used many encode function Server.UrlEncode(callbackurl); System.Net.WebUtility.UrlEncode HTTPUtility.UrlEncode

My URL : https://api.blockchain.info/v2/receive?xpub=xpub6Bt5CqdsGRhMzFk92tfmsdxcqWDbdxrYELuPTyn7mL631ZDVz8285yWsTFmMgTC3Ftb3RG2a6gTPnbZHskkQfkMsXr143Pn9ZiVCrqA3uwm&callback=http:%2f%2flocalhost:12345%2flogin%2fbitcoinpaymentresponse%3fuserid%3d99&key=23a61897-f7a0-4ccd-abdb-bde22dcea39b

i already asked support team they said :

Jade (Blockchain)Nov 1, 16:20 EDTHello, It sounds like you are having an issue with the usage of our open source software and/or API. All information related to open source projects can be found at our Github page: https://github.com/blockchain and our developer page: https://www.blockchain.com/api .If you have not already, please check these resources to see if your issue has been addressed. If you are unable to find an answer to your question then you can submit any issue on the Github page. This will notify the core maintainers, who will be best equipped to help you with your issue.

Please help me, Thanks

ubaidsaeed commented 4 years ago

where did i made a mistake kindly help me. i am waiting for some positive response from your side .

Thanks.

ubaidsaeed commented 4 years ago

Please somebody help me....

orar commented 4 years ago

Do not URL encode ~(Server.UrlEncode)~. Just use the raw url and you ll be fine.

OTopman commented 3 years ago

Anybody with solution to this please??