Closed emmettnicholas closed 9 years ago
@emmettnicholas I can't seem to reproduce this issue. Do you have some sample code I could look at?
Sure-- this triggers the error:
var boxView = require('box-view');
var boxViewClient = boxView.createClient('BOX_VIEW_API_KEY');
var url = 'https://s3.amazonaws.com/forma_app_filepicker_dev-test-staging/lGLy0XRZSF25TmAOM9o6_lorem%E2%80%99ipsum.pdf';
var name = 'lorem’ipsum.pdf';
boxViewClient.documents.uploadURL(url, {
params: {
name: name
},
retry: true
}, function(err, responseData, httpResponse) {
if (err) {
console.log(err);
} else {
var boxDocumentId = responseData.id;
var boxDocumentStatus = responseData.status;
console.log(boxDocumentId, boxDocumentStatus);
}
});
Cool, that repros for me. Looking into it now...
Fixed published in v1.1.1
An error is thrown after I call uploadURL with [options.params.name] set as
foo’bar.pdf
(note the non-standard apostrophe char:’
, not'
).It works when I use the regular apostrophe character. When I call the box-view API directly (e.g. curl from command line), it accepts the special character.
I am on v1.1.0. Thanks!