Closed gaitonde closed 9 years ago
This is most likely related to #478
Crazy url being called: http://monosnap.com/image/RHCIhrvuAOEjEg9XN9itn1sJAHLiXd
It appears as restangular is building the url incorrectly. Not sure why this is QA only. Might be related to minification of javascript.
It looks like an encoding issue. The value has "download" in it w/ the "indexOf" method being called.
Crazy url ain't that crazy :)
Yeah, I saw that, just trying to figure out why I hadn't seen that before
This is now fixed in Dev. We still have the issue with the URl itself not working but this issue if fixed.
@indytechcook - this means that URI is to the right location, but we are getting AccessDenied
, correct?
correct.
On Tue, Dec 16, 2014 at 1:08 PM, Dayal Gaitonde notifications@github.com wrote:
@indytechcook https://github.com/indytechcook - this means that URI is to the right location, but we are getting AccessDenied, correct?
— Reply to this email directly or view it on GitHub https://github.com/appirio-tech/lc1-project/issues/476#issuecomment-67203954 .
I know you have some fixes in mind, but just thought I'd share something I found on SO about setting the region -
AWS.config.region = 'us-west-2';
Ref: http://stackoverflow.com/questions/24095977/fetching-signed-url-from-aws-s3-on-my-node-server
Thanks. That makes sense.
On Tue, Dec 16, 2014 at 1:26 PM, Dayal Gaitonde notifications@github.com wrote:
I know you have some fixes in mind, but just thought I'd share something I found on SO about setting the region -
AWS.config.region = 'us-west-2';
Ref: http://stackoverflow.com/questions/24095977/fetching-signed-url-from-aws-s3-on-my-node-server
— Reply to this email directly or view it on GitHub https://github.com/appirio-tech/lc1-project/issues/476#issuecomment-67206864 .
I have it working for challenge files locally. Pushing code now.
Can you update the file upload to not set the base '/' in the fileUrl.
On Tue, Dec 16, 2014 at 1:34 PM, Neil Hastings nhastings@appirio.com wrote:
Thanks. That makes sense.
On Tue, Dec 16, 2014 at 1:26 PM, Dayal Gaitonde notifications@github.com wrote:
I know you have some fixes in mind, but just thought I'd share something I found on SO about setting the region -
AWS.config.region = 'us-west-2';
Ref: http://stackoverflow.com/questions/24095977/fetching-signed-url-from-aws-s3-on-my-node-server
— Reply to this email directly or view it on GitHub https://github.com/appirio-tech/lc1-project/issues/476#issuecomment-67206864 .
wait, are we uploading to west?
Sorry just to be super clear you want me to remove the leading slash, correct? -
challenges/{challengeId}/...
instead of
/challenges/{challengeId}/...
Per removing the slash, Yes
It's odd - s3 doesn't really have a "region", but there are places in code that it's req'd.
I would think as long as it's consistent it's ok. That said, it's probably best to use east -
AWS.config.region = 'us-east-1';
I set the challenge service to look at the config
Thanks, I wanted to verify we were changing the designed functionality.