"Request body ended before we could read expected number of bytes: 33554432

新規投稿

コメント

3件のコメント

  • Alex Novotny

    Hi, 

    Can you post the full command you are running? 

    Thanks, 

    Alex

    0
    コメントアクション パーマリンク
  • Jagan

    Hi Alex,

    Actually we are implementing the large file uploads in Chunks .

    first step is successful using Create upload session API.

    Second step is to make the Upload part of file API using -

     curl -X PUT \
      https://upload.box.com/api/2.0/files/upload_sessions/7B724420D5DE54DF249BE2ACBCFD8261\
      -H 'authorization: Bearer 1!htuiKz568eisdwzIjzSIsqsR5EnmHhkCC3YpM1CHRoNdaZAIDK8BqUTiT2j_qdXk3VEzKYv3qSK0I2rHHWVHzLDbwGFK2PuA4ERyVktij9GlPG5HlPshv-AJitYWn1l-Adcx8Dyyp6IGfsKAgCmM2jxzpZ91cSHlfqcd_b5376tZQLHRBz19UUfx4nXFcAY5rL6n6zGIP13XmSkqtCdlWwy0Q_4oVJIsqvbDI2cdIUV9RlszBA5XgHcKiIkyYFwKwymbs6Ia5mAW_vwSvIyAijipa_Buk3skqI18EB9UYdViJbcDxiJtm5-JObVhzOvBpaXsNBAurR-oZndgStaSBlAR0iKrjWGCZiTTVAs6mrUWq2FdRik_Vru1gM8RHafGjpRoYk74wLiAJXHpEA2tvrNPcRebOLOYSEIr1WC_j2MFT-N7AZ7uMoG3EyAEyod4O-PiYtrNYPMxbuKPN2_Z4rULA0GDgIZlUxNcNwrw98iDrQ6vuNJs9-2P4PgYcdXTmDktGh4CmqXO8HYKpW0oSFEaO643EEyNG4OjCjmQ8BWtoM_bsBZGBptVmQ2yE3icI_MT0_jepT3nDw..' \
      -H 'cache-control: no-cache' \
      -H 'content-range: bytes 0-33554431/3896706048' \
      -H 'content-type: application/octet-stream' \
      -H 'digest: sha=vyGp6PvFo4RvsFtPoIWeCReyIC8=' \

    After in the Request body we are sending the file object in binary format. 

    we got the response like : failed net::ERR_CONNECTION_RESET

    I have attached the response in the screenshot 

    I would appreciate your review and suggestions. Thank you very much for your assistance.  

     

    Regards

    Rama

    0
    コメントアクション パーマリンク
  • Alex Novotny

    Is it possible that your company has a proxy or something that is restricting your access to upload/download files? That is typically why I see an error like that. 

    0
    コメントアクション パーマリンク

投稿コメントは受け付けていません。