Hello all,
Am trying to setup this module and am running into some issues setting up the cloudsearch service details.
In my aws account I have created a new domain called 'consumersearch' in the 'eu-west-1' region and see this this domain is now active in my aws dashboard.
I've installed this module along with the awssdk module (version 7.x-5.4) and library.
Attached are my config settings. I have used the root access and secret keys to make sure it wasn't the keys that were wrong (I intend to use IAM user keys if I can get them working).
Also attached are the error messages I am getting and the dpm-ed $response variable. My status = 401 which indicates "that there was a problem with the client request. Common client request errors include providing invalid credentials and omitting required parameters. When you get a 4xx error, you need to correct the problem and resubmit a properly formed client request."
https://docs.aws.amazon.com/cloudsearch/latest/developerguide/error-hand...
I am pretty sure the access and secret keys are correct because they are being used on another site without a problem.
Any help would be greatly appreciated!
Comment | File | Size | Author |
---|---|---|---|
#10 | awslogs.png | 30.26 KB | farse |
#10 | addserver.png | 17.51 KB | farse |
#6 | awssdk_libraries.png | 26.1 KB | farse |
#6 | awssdk2error.png | 28.71 KB | farse |
awserror2.png | 11.66 KB | farse |
Comments
Comment #1
farse CreditAttribution: farse commentedComment #2
jslatts CreditAttribution: jslatts commentedThe last released version needs to be taken down. AWS has changed their API and I believe they deprecated the version that you are trying to use.
The latest commit in the repo should work. We are using it in production. We have not had time to really test beyond our very specific use case (we run multiple sites with a single cloudsearch backend) or vet it for general release, but you are welcome to give it a shot.
If you update to that version and still have issues, let us know.
Justin
Comment #3
farse CreditAttribution: farse commenteddo you mean the libraries/awssdk that I need to get the latest version? https://github.com/amazonwebservices/aws-sdk-for-php (as in the readme) or https://github.com/aws/aws-sdk-php?
as I have taken the latest version of Search API Amazon-CloudSearch (downloaded today) and 5.4 in the https://www.drupal.org/project/awssdk module seems to be the latest version there.
Comment #4
farse CreditAttribution: farse commentedsorry jslatts, got confused by what you meant by 'taken down' (thought you meant i need to use it).
looks like the latest two commits are just readme updates. can you specify what commit I use please?
thanks!
Comment #5
jslatts CreditAttribution: jslatts commentedFarse,
Sorry, I meant this module release should be removed since it is broken.
Just use the latest commit, the readme changes should not affect anything.
Justin
Comment #6
farse CreditAttribution: farse commentedHi,
Just so I get this straight, the version I had been on was the latest 7.x-1.x version (4371456)
https://www.drupal.org/node/2097621/commits
and the last commit from that one was 0825a2a. I tried that and no change, same errors.
Then I tried the latest commit on the develop branch which was beb4282 and using the new awssdk2 (which I cloned from https://github.com/aws/aws-sdk-php). I disabled and uninstalled the module and then reenabled it, just in case..
Now getting an error that library isn't installed.
But you can see that I have the awssdk2 folder there
Am I missing something more?
Comment #7
farse CreditAttribution: farse commentedJust an update on what I've tried thus far..
To make sure it's not the credentials that are giving me trouble, I installed the CLI and made the same request in command line. I didn't have any problems returning data this way and so am a bit stuck with the module.
The errors I am getting (first one in the thread) seem to have to be traced back to the authentication in the sdk (using v1).
If you could specify maybe what commit you have working along with the version of sdk you are using maybe I could get a working version up!
Thanks.
Comment #8
jslatts CreditAttribution: jslatts commented@farse
I see the issue. You can't clone the AWSSDK2 repo and use that directly as a drupal library, you need to actually build it, or, preferably, get it from the release page: https://github.com/aws/aws-sdk-php/releases/download/2.7.21/aws.zip
Replace the libraries/awssdk2 folder with the contents of that zip file and let me know what happens!
Justin
Comment #9
farse CreditAttribution: farse at Zoocha commentedComment #10
farse CreditAttribution: farse at Zoocha commentedI've done that (+ using the latest develop branch commit) and am not getting the awssdk not found anymore, which seems like a step in the right direction, but a new error has creeped up when I submit the details.
Have you seen this before?
this happens regardless of ticking the 'Show debug info' or not.
These are the log messages
Also using drupal 7.34 if that helps at all.
Comment #11
jslatts CreditAttribution: jslatts commented@farse,
I haven't seen that before. Unfortunately at this point, you are going to have to debug it yourself. One of the reasons we haven't released any versions of this module is that it hasn't been used by anyone outside of our specific use case.
I would start by turning off dblog and seeing if that gets you any farther.
J
Comment #12
dhavaljani1990 CreditAttribution: dhavaljani1990 as a volunteer commentedHello sir, same problem is here...I have been trying to solve that problem since 2 3 days, but still getting that problem, Can you elaborate how i can solve it?
Thanks