• Instructions to Ask a Question

    Click on the "Ask a Question" button and select the application for which you would like to ask questions.

    We have 5 different products namely - Pabbly Connect, Pabbly Subscription Billing, Pabbly Email Marketing, Pabbly Form Builder, Pabbly Email Verification.

    The turnaround time is 24 hrs (Business Hours - 10.00 AM to 6.00 PM IST, Except Saturday and Sunday). So your kind patience will be highly appreciated!

    🚀🚀Exclusive Discount Offer

    Just in case you're looking for any ongoing offers on Pabbly, you can check the one-time offers listed below. You just need to pay once and use the application forever -
     

    🔥 Pabbly Connect One Time Plan for $249 (🏆Lifetime Access) -  View offer 

    🔥 Pabbly Subscription Billing One Time Plan for $249 (🏆Lifetime Access) - View offer

Status Code: 417Response Text: ERR: Expected hex 0x in '{0}'.

martexx

Member
When i try to upload a file i received in a pabbly email parser i get this error, only happens with the file url from pabbly.
Status Code: 417
Response Text: ERR: Expected hex 0x in '{0}'.

Python:
import requests
from urllib.parse import urlparse

# Set the filename manually or extract it from the URL
manual_filename = f'1. Subject : introductie Rianne2 {{pc_local_date_now}}.pdf'

# API URL for file upload
upload_url = 'https://private31527/ExternalApi/api/CrewingDocumentsContent/UploadFile'

# API headers
headers = {
'Accept': 'application/json',
'apiKey': '{{PrivateTransafeKey}}'
}

# Form data
data = {
'EntityID': '{{3. Result : RiannerIntroductieIDnr}}'
}

# File download URL (direct download link from Google Drive)
file_url = 'https://pcmailhook.com/attachments/2025/01/01/xxx562_03.10-Introduction-for--on--completed-on-.pdf'

# Download the file
file_response = requests.get(file_url)

if file_response.status_code == 200:
    # Use the manually set filename
    filename = manual_filename

    # Prepare the file for upload
    files = {'File': (filename, file_response.content)}

    # Send the POST request to upload the file
    response = requests.post(upload_url, headers=headers, data=data, files=files)

    # Output the response
    print(f"Status Code: {response.status_code}")
    print(f"Response Text: {response.text}")
else:
    print(f"Failed to download the file. Status code: {file_response.status_code}")

the same happens if i make it in a normal api call
 

martexx

Member
but you can see it in the run history, even though it looks like a success it was not

Task History ID -

IjU3NjUwNTZmMDYzNjA0M2Q1MjZjNTUzYzUxMzE1MTY0NTQzODBmMzAi_pc​


Executed at

Jan 03, 2025 11:21:30, (UTC+00:00) America/Danmarkshavn​

 

ArshilAhmad

Moderator
Staff member
Thank you for the update. We are glad the issue has been resolved. Kindly monitor your workflow for some time, and if you encounter the "Response Text: ERR: Expected hex 0x in '{0}'" error again in step 8, please let us know.

It seems to work now after am afternoon of errors.
I am still curious on the why Soni can deal with it when needed.
As of now, we don't know the reason why you encountered that error, so we won't be able to comment on it.
 
Top