Closed
Bug 858183
Opened 13 years ago
Closed 13 years ago
knox/S3 is not compatible with node v0.10
Categories
(Webmaker Graveyard :: Popcorn Maker, defect)
Webmaker Graveyard
Popcorn Maker
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: jon, Assigned: jon)
Details
(Whiteboard: u=dev c=popcorn.wm.o p=1 s=2013w16)
Attachments
(1 file)
JP and I discovered this while testing the migration procedure. You'll get the following error: "Error: Hostname/IP doesn't match certificate's altnames"
If you add an error handler to S3FileStore.prototype.write() then it's possible to catch it:
diff --git a/lib/file-store.js b/lib/file-store.js
index eca089b..43e1455 100644
--- a/lib/file-store.js
+++ b/lib/file-store.js
@@ -151,6 +151,9 @@ S3FileStore.prototype.write = function( key, data, callback ) {
callback( res.statusCode );
}
})
+ .on( 'error', function( blah ) {
+ console.log( arguments );
+ })
.end( data );
};
Comment 1•13 years ago
|
||
I see that knox 0.6.0 is out, which adds support for 0.10, see:
https://github.com/LearnBoost/knox/blob/master/History.md#060--2013-03-24
| Assignee | ||
Comment 2•13 years ago
|
||
We should also consider using the official SDK: https://github.com/aws/aws-sdk-js
| Assignee | ||
Updated•13 years ago
|
Whiteboard: u=dev c=popcorn.wm.o p=1 s=2013w16
| Assignee | ||
Comment 3•13 years ago
|
||
I played with the aws-sdk on the weekend, and it's a pain. So lets just update to v0.7.0!
Attachment #737477 -
Flags: review?(david.humphrey)
Comment 4•13 years ago
|
||
Comment on attachment 737477 [details] [review]
https://github.com/mozilla/butter/pull/1665
This looks sane to me. I'd like to see it run on staging, assuming we do AWS publishing there? It's a bit hard to test it locally end-to-end.
r+ on the code change.
JP, can you deploy this somehow and see that publishing doesn't break for new stuff?
Attachment #737477 -
Flags: review?(johns)
Attachment #737477 -
Flags: review?(david.humphrey)
Attachment #737477 -
Flags: review+
Comment 5•13 years ago
|
||
So which version node should we test on? v0.10? I can setup staging to have whichever version and push a tagged version up, if you tag it.
Comment 6•13 years ago
|
||
Yeah, v0.10. jbuck, can you tag so he can test deploy?
| Assignee | ||
Comment 7•13 years ago
|
||
Merged into master: https://github.com/mozilla/butter/commit/251093c518c06ed1cc7c04ed324b1c055287fa88
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
| Assignee | ||
Updated•13 years ago
|
Attachment #737477 -
Flags: review?(johns)
Updated•12 years ago
|
Attachment mime type: text/plain → text/x-github-pull-request
You need to log in
before you can comment on or make changes to this bug.
Description
•