service-my-wallet-v3 icon indicating copy to clipboard operation
service-my-wallet-v3 copied to clipboard

Callback parameter is not URL encoded

Open ubaidsaeed opened this issue 5 years ago • 4 comments

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 avatar Nov 04 '19 08:11 ubaidsaeed

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

Thanks.

ubaidsaeed avatar Nov 04 '19 18:11 ubaidsaeed

Please somebody help me....

ubaidsaeed avatar Nov 07 '19 06:11 ubaidsaeed

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

orar avatar Jul 28 '20 12:07 orar

Anybody with solution to this please??

OTopman avatar Feb 21 '21 22:02 OTopman