Unable to establish session using blockchain-wallet-service - php

I installed blockchain-wallet-service correctly and work well.
When i try to login on my wallet, or do any action, i receive this error message:
error: Unable to establish session
All works well, i started the blockchain service correctly:
blockchain-wallet-service start
info: blockchain.info wallet service v0.22.0 running on http://127.0.0.1:3000
Waiting your answers.

I have the same error. It gets fixed by adding the ApiCode (at least at the first request for a walletId).
So the solution is request an ApiCode (here) and always include it at your requests. Ex:
http://$IP:$PORT/merchant/$guid/balance?password=$main_password&api_code=$api_code
- For me it also works an ApiCode requested for Payment v2 API

Yes, I have this error. I think it's of blockchain servers, I have many problem with it.
I've got this issue online, then i tried to change my Wallet ID and it's worked.

Related

Revolut Business Api failure on transfer and payment endpoints

I'm trying to integrate Revolut Business Api into our system. Mainly it will handle only payments to external (non-revolut) accounts.
Working in php and using Laravel.
I’m using the sandbox environment and the authorization process is working well, also checking our own accounts (different currencies) and creating and editing counterparties are working as expected.
During the development I and ran into a problem and I couldnt find any information online or in any community pages.
Any other endpoint (besides the above mentioned) that I’m calling is giving back an error 500 with the following error message
e.g: {"message":"Oops! An error occurred while processing your request. It has been logged for further investigation. Error Id: xxxxxxxxxxxxx”}
For testing purposes I send it payloads with bad data, and the response is working as expected pointing out the problematic data.
e.g: wrong currency transfer from specific account, or negative figure in the amount field, etc.
But whenever I send in a correct data (I believe it is correct) it responses with the above mentioned 500 error.
I do believe that the problem is on my end and I’m doing something in not the specific way.
Is anyone ran into the same situation?
Thank you
Tamas

Bigcommerce - Developing an application in PHP - Webhooks

This is my very first application I'm developing for an internal business requirement and I'm needing some help getting started.
So far I have found their documentation to be quite low in terms of standards but with a lot of Googling and research, I've managed to get a successful request producing an Access Token.
I have used Composer to download Guzzle and create a little code that listens to a GET request and I POST some details up and received the token. Great!
What now? It looks like I need to register a web hook but first I want to start with listing hooks - just to get a feel for what I need to do next.
I'm looking to retrieve order details each time a order is placed.
Questions:
I have a oauth.php file hosted on a SSL host which is called when I install a app. This gives me a token. Do I straight after receiving the token, register the web hook?
If that is a yes, do I now create a webhook.php file which listens for orders placed in real time?
If that is a yes, do I need to run the same code I have in oauth, to check if I'm allowed and if so, listen to the call and process?
Once you have an access token, you can create/list webhooks at any time. According to the sparse documentation, your access token will expire in 30-60 days, so you will need to eventually renew it.
Once you have created the webhook you will need a script in place to receive the incoming data from BigCommerce. If the webhook receives an HTTP code other than 200 from the script, it will attempt to repeat the request with a delay, and after a number of failures will eventually mark the hook as inactive.
You don't need any oauth related code on the script that is being triggered by webhooks. If you do want some form of authentication to verify the source of the data, look into the documentation on sending custom headers with the webhook requests. When the webhook triggers it will send a JSON object that contains the scope and ID of the resource that was changed.
It should be noted that while you need an HTTPS URL for both the oauth process and the webhook triggers, the webhook triggers will not work unless your SSL has all intermediate certificates loaded. You can get through the OAuth process without this, but the hooks will simply not work, to the extent of not even hitting your servers access logs.

Google Authentication Using PHP Library OAuth 2.0

After many many hours searching I am still unable to figure out why I am receiving this error. It worked for a month and without touching any code, stopped working last night. The web app has been registered and Google+ api is turned on.
Fatal error: Uncaught exception 'Google_ServiceException' with message 'Error calling GET https://www.googleapis.com/oauth2/v2/userinfo?key=MYKEY: (403) Access Not Configured. Please use Google Developers Console to activate the API for your project.'
I enabled Google+ Domain API just to see if it did anything. It allowed me to login 1 time and then continued to fail after that.
The developer key should be OK to pass every time as long as it matches the project that has been used for sign in (e.g. the client ID and the key come from the same developers.google.com/console project).
There was a problem yesterday with the userinfo endpoint that caused 403 for a number of users - that has now been resolved, but my guess is you were hitting that unfortunately!
So after further research and testing, I think I have the solution.
As mentioned by Jason OOO, $client->setDeveloperKey($key); was causing the problem.
As it turns out, Google PHP library needs $client->setDeveloperKey($key); passed the first time for validation, but causes an error if passed again after already being validated.
So, to fix this problem, check to see if user is already logged in and if they are do not pass $client->setDeveloperKey($key);

Adwords API Bad Authentication

I am using Adwords API from last 3 months and all of a sudden today it is coming up with error message as follows:
Uncaught exception 'AuthTokenException' with message 'Failed to get authToken. Reason: BadAuthentication'
I am using google adwords V201101 php library with auth.ini containing all user details and settings.ini with https://adwords.google.com not sandbox environment. Can anyone help me with this please???
Thanks,
Murali.
you may requesting authToken from ClientLogin service too many times, that is way you get 'CaptchaRequired'.
Request authToken just for the first time, and then cache it for subsequent requests.
Check this out http://goo.gl/TOX6N
I recently had this problem trying to connect to Google DFP. I copied perfectly working code from my localhost after development and ran it on my remote cloud server. I then received the
Failed to get authToken
message. The reason was that google was blocking the attempted login as a security measure because it was a new location. I had to log into the google account (from the web) with those credentials in order to see the message and confirm the added login location. Everything worked fine after that authorization.
I've stumbled across this question and thought that this info may help someone else.
BadAuthentication means your username/password is incorrect. May be someone changed the account password, may be auth.ini got modified by mistake.
See detailed error codes here: http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html#Errors
Cheers,
Anash
I started getting this error after somebody in my organization updated the password for the account my app was using to log in. The best way to avoid this happening again is to use OAuth2.
It's as easy as going to the Google API console and creating a Client ID for Installed Applications (under API access) for your project. You then use the Client ID and Client Secret in your Adwords API auth.ini file.
Next you run the examples/AdWords/Auth/GetRefreshToken.php script which will have you grant your app access to your Adwords account. You'll end up with a Refresh Token which you need to add to your auth.ini.
The ClientLogin (username and password) method of authentication is being deprecated in favour of the above so best to migrate ASAP.

Error trying to connect to FedEx Ship Service API when using PHP

I had decided to integrate FedEx Shipping Service into one of my online apps.
I downloaded a sample PHP code from the FedEX developer center. But when I tried to work with the ShipGroundDomestic.php5 I am getting error. I modified the file according to my specifications & plugged in the credentials. But I am unable to make it work. I am getting following error,
Fault
Code:HTTP
String:Could not connect to host
I have made sure that there are no file path issues & other related issues. But I am constantly getting this error. I was wondering if any of you guys have worked with this & would know how to resolve this. I tried contacting the FedEx guys but its unhelpful.
Have you done a packet capture to see if you are generating/sending packets or if it fails before that. If it fails to generate packets then check to make sure the app is resolving the URL properly.
This problems occurs when your are using Proxy Server.

Categories