Cannot execute https call when using http node or execution node #9978

Closed
opened 2026-02-21 18:41:18 -05:00 by yindo · 0 comments
Owner

Originally created by @zhangdahai112 on GitHub (Mar 9, 2025).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.0.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Image

✔️ Expected Behavior

Image
As u see, i executed a https call to my api server, report a unsafe ssl proxy issue, i tried serval ways but i can't fix it.

my code is below , pls help:
import requests

def get_title(article)-> str:
pass

def content_factory_add(article: str, cover: str)-> str:
url = "https://xxxAdd"

headers = {
    "Accept": "application/json, text/plain, */*",
    "Accept-Language": "zh-CN,zh;q=0.9,zh-TW;q=0.8,en;q=0.7",
    "Connection": "keep-alive",
    "Content-Type": "application/json",
    "Origin": "https://xxx",
    "Referer": "https://xxx/",
    "Sec-Fetch-Dest": "empty",
    "Sec-Fetch-Mode": "cors",
    "Sec-Fetch-Site": "cross-site",
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36",
    "sec-ch-ua": '"Google Chrome";v="131", "Chromium";v="131", "Not_A Brand";v="24"',
    "sec-ch-ua-mobile": "?0",
    "sec-ch-ua-platform": '"Windows"',
    "ticket": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOltdLCJzdWIiOiIxNzQxNTA3NzQxMTYwQ3dFOW9ObHdIVERsMlRWVm03RGlNTCIsInVzZXJfbmFtZSI6IkdVSUQ4OTA2NzYwNTc3MTI5MzU3MzEzIiwibG9naWNfaWQiOjMxNjYxMTQ1OTY2Mjk1ODU5MywiaXNzIjoia2h0LnRhaXBpbmciLCJzY29wZSI6W10sImdyYW50X3R5cGUiOiJwYXNzd29yZCIsImp0aSI6IjE3NDE1MDc3NDEyNTlXbVhpa09vQXN6WmFZZ0hPVDhGSHoiLCJhZGRpdGlvbmFsSW5mbyI6e30sImlhdCI6MTc0MTUwNzc0MSwiZXhwIjoxNzQxNTE0OTQxLCJhdXRob3JpdGllcyI6W10sImNsaWVudF9pZCI6InRwdC1zZXJ2aWNlLWFjY291bnQifQ.bfNXie0F77sZZ3wwycCkzERa7LzZbqDoIgnxnpuQJB28g_4AOksMVvedANYhh2v2kv6RYl7s4HohaCJ1u_tDxaTUC5coYJtLaWttN9KQrqBoeFelgXjBACYlvcIlM3wQQF04H4ZfEsT6luA-a6lH5Ta3zb17nqHCUUdO06OFgyw"
}

payload = {
    "articleId": "",
    "title": "dify测试",
    "subTitle": "测试",
    "dataType": 1,
    "articleSource": "TPT",
    "dataStructure": "[]",
    "content": article,
    "articleImage": [
        {
            "fileUrl": cover,
            "filePurposes": "2",
            "fileType": "1"
        }
    ],
    "style": "2",
    "articleTag": [],
    "articleChannel": [],
    "albums": "",
    "shareFlag": "1",
    "clickStatus": "0",
    "commentStatus": "0",
    "coinActivityId": "16382412617031181",
    "pubPlatformTime": None,
    "contentFactory": True,
    "operation": "1"
}
session = requests.Session()
session.verify = False
response = session.post(url, headers=headers, json=payload, verify=False)
return response.json()

def main(article: str, cover: str) -> dict:
return {
"result": content_factory_add(article, cover),
}

Actual Behavior

cant solve it , sandbox

Originally created by @zhangdahai112 on GitHub (Mar 9, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.0.0 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce ![Image](https://github.com/user-attachments/assets/1c2790ff-5f2a-47fe-9808-c6725dd8ab20) ### ✔️ Expected Behavior ![Image](https://github.com/user-attachments/assets/3924bfe4-859b-4c95-9ab5-fb87ec607a49) As u see, i executed a https call to my api server, report a unsafe ssl proxy issue, i tried serval ways but i can't fix it. my code is below , pls help: import requests def get_title(article)-> str: pass def content_factory_add(article: str, cover: str)-> str: url = "https://xxxAdd" headers = { "Accept": "application/json, text/plain, */*", "Accept-Language": "zh-CN,zh;q=0.9,zh-TW;q=0.8,en;q=0.7", "Connection": "keep-alive", "Content-Type": "application/json", "Origin": "https://xxx", "Referer": "https://xxx/", "Sec-Fetch-Dest": "empty", "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "cross-site", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36", "sec-ch-ua": '"Google Chrome";v="131", "Chromium";v="131", "Not_A Brand";v="24"', "sec-ch-ua-mobile": "?0", "sec-ch-ua-platform": '"Windows"', "ticket": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOltdLCJzdWIiOiIxNzQxNTA3NzQxMTYwQ3dFOW9ObHdIVERsMlRWVm03RGlNTCIsInVzZXJfbmFtZSI6IkdVSUQ4OTA2NzYwNTc3MTI5MzU3MzEzIiwibG9naWNfaWQiOjMxNjYxMTQ1OTY2Mjk1ODU5MywiaXNzIjoia2h0LnRhaXBpbmciLCJzY29wZSI6W10sImdyYW50X3R5cGUiOiJwYXNzd29yZCIsImp0aSI6IjE3NDE1MDc3NDEyNTlXbVhpa09vQXN6WmFZZ0hPVDhGSHoiLCJhZGRpdGlvbmFsSW5mbyI6e30sImlhdCI6MTc0MTUwNzc0MSwiZXhwIjoxNzQxNTE0OTQxLCJhdXRob3JpdGllcyI6W10sImNsaWVudF9pZCI6InRwdC1zZXJ2aWNlLWFjY291bnQifQ.bfNXie0F77sZZ3wwycCkzERa7LzZbqDoIgnxnpuQJB28g_4AOksMVvedANYhh2v2kv6RYl7s4HohaCJ1u_tDxaTUC5coYJtLaWttN9KQrqBoeFelgXjBACYlvcIlM3wQQF04H4ZfEsT6luA-a6lH5Ta3zb17nqHCUUdO06OFgyw" } payload = { "articleId": "", "title": "dify测试", "subTitle": "测试", "dataType": 1, "articleSource": "TPT", "dataStructure": "[]", "content": article, "articleImage": [ { "fileUrl": cover, "filePurposes": "2", "fileType": "1" } ], "style": "2", "articleTag": [], "articleChannel": [], "albums": "", "shareFlag": "1", "clickStatus": "0", "commentStatus": "0", "coinActivityId": "16382412617031181", "pubPlatformTime": None, "contentFactory": True, "operation": "1" } session = requests.Session() session.verify = False response = session.post(url, headers=headers, json=payload, verify=False) return response.json() def main(article: str, cover: str) -> dict: return { "result": content_factory_add(article, cover), } ### ❌ Actual Behavior cant solve it , sandbox
yindo added the 🐞 bug label 2026-02-21 18:41:18 -05:00
yindo closed this issue 2026-02-21 18:41:18 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#9978