-
-
Notifications
You must be signed in to change notification settings - Fork 19.4k
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
Post Request with SSL doesn’t work (mbedtls error) #59216
Comments
@NeroNekro Please upload a minimal reproduction project to make this easier to troubleshoot.
This refers to the godot/thirdparty/mbedtls/include/mbedtls/ssl.h Lines 168 to 169 in 178961a
|
I uploaded a test project on google drive. https://drive.google.com/file/d/1jftSIF-UyOX55_SNZOpL4-Cagkcc3uAW/view?usp=sharing I had configured a testserver or you change the link in connector.gd. Server side code: secure_token = "266d0c79shtsvjsfg7706f25db22d88effa139c01b7f19eea2edf3c6919ee2cf995976d17%="
def check_token(header):
token = header.split()[1]
if token == secure_token:
return True
else:
return False
@cat_v1.route("/upload", methods=["POST"])
def upload_cat_image():
if check_token(request.headers.get('Authorization')):
image = request.form.get('file')
filetype = request.form.get('format')
terms = request.form.get('terms')
privacy = request.form.get('privacy')
filename = str(uuid.uuid4())
with open("api/cat/uploaded_images/" + filename + ".png", "wb") as fh:
fh.write(base64.b64decode(image))
ImagesTMP.insert(filename=filename,
filenameBackup="",
extension=filetype).execute()
return "{'status': 'yes'}"
return "{'status': 'no'}" |
@NeroNekro Please surround large blocks of text with triple backticks like this: ``` This prevents them from taking too much space and also makes sure issue references aren't accidentally created. I edited your comment, but remember to do this next time 🙂 |
yes, of course. sorry for the circumstances. A few more information: |
This error message comes up, if the server not responding or something else. Server side fix was the solution. thanks for your help |
Godot version
3.4.3
System information
MacOS 12
Issue description
My App make some request to my server. The GET requests works fine and one POST request works too, but my last post request to upload a image in base64 doesn't work.
This error shows up in Xcode:
thirdparty/mbedtls/library/ssl_tls.c:3746: mbedtls_ssl_flush_output() returned -26752 (-0x6880)
I read a problem with lets encrypt and add the certificate from github/godot/thirdparty/certs to my project settings, but it doesn't help.
On my Testsystem without SSL it works very well.
Steps to reproduce
Make Post Request with a Base64 File
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: