question

lax4311 avatar image
0 Likes"
lax4311 asked

Error: write EPROTO

Hi Team

Ebay getOrder api failing and giving below error, this started happening from 30th March, before that all was working good. Using ebay-api npm package.

{ Error: write EPROTO 140637827845120:error:1409442E:SSL routines:ssl3_read_bytes:tlsv1 alert protocol version:../deps/openssl/openssl/ssl/record/rec_layer_s3.c:1536:SSL alert number 70 at WriteWrap.afterWrite (net.js:788:14) errno: 'EPROTO', code: 'EPROTO', syscall: 'write' }

ssl
10 |600

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brooklyn_restock avatar image
0 Likes"
brooklyn_restock answered

Was able to fix the problem on mine. The package that I'm using was set to use TLS1.0 so had to modify the module itself to make use of TLSv1.2 as the minimum version.


ebay-api uses request (npm). You can set the TLS version to use 1.2

agentOptions:{
 //....
 minVersion: 'TLSv1.2'
}
10 |600

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.