Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Why does attachment upload API timeout?

Other Trello API calls work fine.

Attachment uploads to cards worked fine until a few days ago. Now times out after 20 seconds.

java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)

I have amended java httpclient timeouts and see "connection reset by peer" every 20 seconds:

2020/08/18 09:18:39 AM [INFO] - url : https://api.trello.com/1/cards/5d5ddxxxxxxxxx4546/attachments?key=0732872xxxxxxxxxd7e24204687&token=074c7ce3b07xxxxxxxxx88f9440f&name=ABCD_Glass_Current_Stock.pdf
2020/08/18 09:18:58 AM [INFO] - I/O exception (java.net.SocketException) caught when processing request: Connection reset by peer: socket write error
2020/08/18 09:18:58 AM [INFO] - Retrying request
2020/08/18 09:19:18 AM [INFO] - I/O exception (java.net.SocketException) caught when processing request: Connection reset by peer: socket write error
2020/08/18 09:19:18 AM [INFO] - Retrying request
2020/08/18 09:19:38 AM [INFO] - I/O exception (java.net.SocketException) caught when processing request: Connection reset by peer: socket write error
2020/08/18 09:19:38 AM [INFO] - Retrying request
2020/08/18 09:19:58 AM [ERROR] - error.unknown : Connection reset by peer: socket write error
java.net.SocketException: Connection reset by peer: socket write error
at java.net.SocketOutputStream.socketWrite0(Native Method)

1 answer

0 votes
Iain Dooley Community Leader Aug 18, 2020

@Paul van Cingel in order to eliminate the possibility that there is something dodgy going on in your code, have you tried doing it with curl and seeing if you get the same problem?

curl -v -F "file=@test.pdf" "https://api.trello.com/1/cards/CARDID/attachments?key=KEY&token=TOKEN

that should give you a bunch of output and a bit more insight into what's going on, if that doesn't work then it'll make a stronger case when you contact Trello support, if that does work then there's probably something else wrong on your side of the fence.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Trello

📹 What is Trello?

Hello Community!  My name is Brittany Joiner and I am a Trello enthusiast and Atlassian Community Leader. I'll be sharing with you a series of videos with my top tips on how to best use Trello...

793 views 13 30
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you