The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

API Upload Picture <Error>

bastien
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 19, 2024

Hello,
I have a little question about "Upload Picture"

When i use the command : 
curl -D- -u USER:APIKEY -X POST -H "X-Atlassian-Token: nocheck" -F "file=@image.png" -F "minorEdit=true" -F "comment=Example attachment comment" https://domaine/rest/api/content/681673960/child/attachment

curl: (35) schannel: next InitializeSecurityContext failed: SEC_E_ILLEGAL_MESSAGE (0x80090326) - This error usually occurs when a fatal SSL/TLS alert is received (e.g. handshake failed)

I follow this : 
Solved: Uploading attachments using rest api. (atlassian.com)
The Confluence Cloud REST API (atlassian.com)
Using the Confluence REST API to upload an attachment to one or more pages | Confluence | Atlassian Documentation

but it didnt work : (

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Humashankar VJ
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
February 19, 2024

Great problem statement to look in to:

 

Hi - I hope that you are Doing good !!

Double checkthat you are using the latest version of curl and any relevant libraries on your system

Use the --verbose option with curl to enable verbose output and obtain more detailed information about the SSL/TLS handshake process

With this you able to sort the SEC_E_ILLEGAL_MESSAGE error in your curl command


Hope this helps

Thank you very much and have a fantastic day!
Warm regards

bastien
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 20, 2024

I got that : 

* Trying 10.150.214.61:443...
* Connected to wiki.domaine (ipAdress) port XXX
* schannel: disabled automatic use of client certificate
* ALPN: curl offers http/1.1
* schannel: next InitializeSecurityContext failed: SEC_E_ILLEGAL_MESSAGE (0x80090326) - This error usually occurs when a fatal SSL/TLS alert is received (e.g. handshake failed). More detail may be available in the Windows System event log.
* Closing connection
* schannel: shutting down SSL/TLS connection with wiki.space.thales port 443
curl: (35) schannel: next InitializeSecurityContext failed: SEC_E_ILLEGAL_MESSAGE (0x80090326) - This error usually occurs when a fatal SSL/TLS alert is received (e.g. handshake failed). More detail may be available in the Windows System event log.

And i also try : curl --version 

curl 8.4.0 (Windows) Schannel WinIDN
Release-Date: 2023-10-11

 

#VersionDateSince 8.6.0DeltaAccumulated
DaysBugfixesChangesDaysBugfixesChangesVulns
2548.6.0Jan 31 20245615485615480
2538.5.0Dec 6 202356 days561832112337101
2528.4.0Oct 11 20233 months28136314047313

2

 

 

I don t know if this version have problem for that...

And i can change version "computer compliance".

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events