Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

response code: 400 #2

Open
gabriel-r opened this issue Apr 1, 2011 · 2 comments
Open

response code: 400 #2

gabriel-r opened this issue Apr 1, 2011 · 2 comments

Comments

@gabriel-r
Copy link

I am trying to use the script, but CloudFront insists that my request are Bad.

CloudFront: Invalidating Object: /sites/all/themes/blueprintea/css/photovocab.css
https://cloudfront.amazonaws.com/2010-08-01/distribution//invalidation
body: <InvalidationBatch><Path>/sites/all/themes/blueprintea/css/photovocab.css</Path><CallerReference>1301671758</CallerReference></InvalidationBatch>
response: 1
response string: <?xml version="1.0"?>
<ErrorResponse xmlns="http://cloudfront.amazonaws.com/doc/2010-08-01/"><Error><Type>Sender</Type><Code>InvalidURI</Code></Error><RequestId>3f690152-5c75-11e0-b905-8fae6169b670</RequestId></ErrorResponse>

response code: 400

I am specifying the path to invalidate like this:

$key = array(
 "/sites/all/themes/blueprintea/css/photovocab.css",
 );

Am I doing something wrong?

Thank you.

@guimeilin
Copy link

I am trying to use the script, but CloudFront insists that my request are Bad.

CloudFront: Invalidating Object: /config/MD5Value.xml
2010-08-01/distribution//invalidation
body: /config/MD5Value.xml1318299225
response: 1
response string:

<TITLE>404 Not Found</TITLE>

Not Found

The requested URL /2010-08-01/distribution//invalidation was not found on this server.


Apache/1.3.29 Server at localhost Port 80

response code: 404

Am I doing something wrong?

Thank you.

@gabriel-r
Copy link
Author

Try setting the paths without the original /

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants