-
Notifications
You must be signed in to change notification settings - Fork 279
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
[ERR_INVALID_ARG_TYPE]: The \"data\" argument must be of type string or an instance of Buffer, TypedArray, or DataView #259
Comments
I had this same issue and did some digging turns out the error is on line 288 of le-store-certbot. If I comment out the following lines: /* ............ around line 288 ................. */
var privkeyArchive = path.join(archiveDir, 'privkey' + checkpoints + '.pem');
//var bundleArchive = path.join(archiveDir, 'bundle' + checkpoints + '.pem'); //no longer used
return mkdirpAsync(archiveDir).then(function () {
return PromiseA.all([
sfs.writeFileAsync(certArchive, pems.cert, 'ascii')
, sfs.writeFileAsync(chainArchive, pems.chain, 'ascii')
, sfs.writeFileAsync(fullchainArchive, [ pems.cert, pems.chain ].join('\n'), 'ascii')
, sfs.writeFileAsync(privkeyArchive, pems.privkey, 'ascii')
//, sfs.writeFileAsync(bundleArchive, pems.bundle, 'ascii') // <-- comment this line
]);
}).then(function () {
return mkdirpAsync(liveDir);
}).then(function () { it works as expected. furthermore I saw that this certbot store is deprecated, but le-store-fs is a drop in replacement. I would imagine it's just a case that le-store-certbot hasn't been touched in years, and the world of https has changed, and bundles are now a null response, which trips up the certbot-store. I haven't checked if changing redbird over to le-store-fs will fix the issue, so if you want to check it and put in a pull request I'll let you have the claim to fame for reference, redbird now registers https for me and is working as expected :) |
I faced the exactly same issue, thanks a lot @Dotrar for the fix 🙏 However, I believe that this issue should be fixed... |
Getting the following errors:
from the following configuration:
What is the
data
argument? Why is itundefined
? Am I meant to create the certificates manually? Thecerts
directory exists, and looks as I'd expect for ACME.node: v14.5.0
npm: 6.14.5
package.json
:Tested with node 10.22.0, 12.18.3, and latest. No success
The text was updated successfully, but these errors were encountered: