Closed mgatten closed 7 years ago
The exception is being thrown because the remote end is returning a 401. There's likely something going on with your consumerId or private key.
I am having the same error. Did you ever figure it out? (All I did was install the latest 1.0.9 version of this SDK, and then use your same test file with my ID and Key credentials. I get the same error and can't figure out why.
Anyone offer any solutions?
Are you sure the consumerId and secret you are using is for the staging environment? You should have different credentials for staging and production but they are probably not the same.
One other factor can be if your server is not properly configured for internet time and is off a bit. The auth signature that is generated is based on the current time, so if you're off even by a couple seconds it will be wrong to Walmart.
I found out that developers are never given keys to the staging environment, so that explains why you're getting errors there. Can you try removing the environment argument or change it to Feed::ENV_PROD and see if you still get errors?
I'm just starting an integration project, and I came across your library. Thank you SO MUCH for doing all the heavy lifting!
Just to confirm connectivity, I wrote a quick test script. It's getting a 401, and I'm not sure where to start troubleshooting. Perhaps you have a suggestion?
The output generated when I run that from the command line:
By putting a "die()" in various spots, I've confirmed that this is being generated by the "$feeds = $client..." command. The script remains silent up to that point.
What am I missing?