Connection to models via Azure AI Studio fails with "Expecting value: line 1 column 1 (char 0)" #215

Closed
opened 2026-02-16 10:18:28 -05:00 by yindo · 4 comments
Owner

Originally created by @NattawatPin on GitHub (Apr 22, 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.2.0

Cloud or Self Hosted

Cloud

Steps to reproduce

I am unable to connect your application to the GPT-4.1, o3, and 03-mini models through Azure AI Studio. Could you please look into this issue and provide assistance?

✔️ Expected Behavior

The application should successfully connect to the GPT-4.1, o3, and 03-mini models via Azure AI Studio without any errors.

Actual Behavior

The application is unable to connect to the GPT-4.1, o3, and 03-mini models via Azure AI Studio. The following error message appears: [Expecting value: line 1 column 1 (char 0)].

Originally created by @NattawatPin on GitHub (Apr 22, 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.2.0 ### Cloud or Self Hosted Cloud ### Steps to reproduce I am unable to connect your application to the GPT-4.1, o3, and 03-mini models through Azure AI Studio. Could you please look into this issue and provide assistance? ### ✔️ Expected Behavior The application should successfully connect to the GPT-4.1, o3, and 03-mini models via Azure AI Studio without any errors. ### ❌ Actual Behavior The application is unable to connect to the GPT-4.1, o3, and 03-mini models via Azure AI Studio. The following error message appears: [Expecting value: line 1 column 1 (char 0)].
yindo closed this issue 2026-02-16 10:18:28 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Apr 22, 2025):

Hello @NattawatPin! I'm Dosu, a friendly bot here to help you with bugs, answer questions, and assist you in becoming a contributor. I'm here while you wait for a human maintainer. Let's tackle this issue together!

The "Expecting value: line 1 column 1 (char 0)" error typically indicates an issue with the response from the server, often due to an empty or malformed JSON response. Here are some steps you can take to troubleshoot this issue:

  1. Check API Credentials: Ensure that the API credentials used for connecting to Azure AI Studio are correct and have the necessary permissions.

  2. Verify Endpoint URLs: Double-check the endpoint URLs for the models (GPT-4.1, o3, and 03-mini) to ensure they are correct and accessible.

  3. Network and Firewall Settings: Make sure that your network and firewall settings allow outbound connections to Azure AI Studio. This includes checking for any proxy settings that might interfere with the connection.

  4. Inspect Logs: Review the application logs for any additional error messages or warnings that might provide more context about the failure.

  5. Model Deployment: Confirm that the models are properly deployed and available in Azure AI Studio. Ensure that the model versions are compatible with your application.

  6. Test with Other Tools: Use tools like Postman or curl to manually test the API endpoints and verify if the issue is specific to Dify or a broader connectivity problem.

If these steps do not resolve the issue, consider providing more detailed logs or error messages to help diagnose the problem further.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@dosubot[bot] commented on GitHub (Apr 22, 2025): <!-- Greeting --> Hello @NattawatPin! I'm [Dosu](https://dosu.dev), a friendly bot here to help you with bugs, answer questions, and assist you in becoming a contributor. I'm here while you wait for a human maintainer. Let's tackle this issue together! <!-- Answer --> The "Expecting value: line 1 column 1 (char 0)" error typically indicates an issue with the response from the server, often due to an empty or malformed JSON response. Here are some steps you can take to troubleshoot this issue: 1. **Check API Credentials**: Ensure that the API credentials used for connecting to Azure AI Studio are correct and have the necessary permissions. 2. **Verify Endpoint URLs**: Double-check the endpoint URLs for the models (GPT-4.1, o3, and 03-mini) to ensure they are correct and accessible. 3. **Network and Firewall Settings**: Make sure that your network and firewall settings allow outbound connections to Azure AI Studio. This includes checking for any proxy settings that might interfere with the connection. 4. **Inspect Logs**: Review the application logs for any additional error messages or warnings that might provide more context about the failure. 5. **Model Deployment**: Confirm that the models are properly deployed and available in Azure AI Studio. Ensure that the model versions are compatible with your application. 6. **Test with Other Tools**: Use tools like Postman or curl to manually test the API endpoints and verify if the issue is specific to Dify or a broader connectivity problem. If these steps do not resolve the issue, consider providing more detailed logs or error messages to help diagnose the problem further. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/893fff50-0944-4098-87d7-5aa66159421c?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/893fff50-0944-4098-87d7-5aa66159421c?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/893fff50-0944-4098-87d7-5aa66159421c?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/893fff50-0944-4098-87d7-5aa66159421c?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/893fff50-0944-4098-87d7-5aa66159421c?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/893fff50-0944-4098-87d7-5aa66159421c?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/893fff50-0944-4098-87d7-5aa66159421c?feedback_type=other)</sup>
Author
Owner

@crazywoola commented on GitHub (Apr 22, 2025):

Please provide the plugin version as well.

@crazywoola commented on GitHub (Apr 22, 2025): Please provide the plugin version as well.
Author
Owner

@NattawatPin commented on GitHub (Apr 22, 2025):

Azure AI Studio v0.0.3

@NattawatPin commented on GitHub (Apr 22, 2025): Azure AI Studio v0.0.3
Author
Owner

@dosubot[bot] commented on GitHub (Aug 19, 2025):

Hi, @NattawatPin. I'm Dosu, and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale.

Issue Summary

  • You reported a connection failure in Dify v1.2.0 (cloud) when accessing GPT-4.1, o3, and 03-mini models via Azure AI Studio.
  • The error involves JSON parsing issues during the connection attempt.
  • Troubleshooting suggestions included verifying API credentials, endpoint URLs, network settings, logs, and model deployment status.
  • You provided the plugin version as Azure AI Studio v0.0.3 when requested.
  • The issue remains unresolved and may require further investigation or detailed logs.

Next Steps

  • Please confirm if this issue is still relevant with the latest version of the dify-official-plugins repository by commenting here.
  • If no response is received within 5 days, I will automatically close this issue.

Thank you for your understanding and contribution!

@dosubot[bot] commented on GitHub (Aug 19, 2025): Hi, @NattawatPin. I'm [Dosu](https://dosu.dev), and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale. **Issue Summary** - You reported a connection failure in Dify v1.2.0 (cloud) when accessing GPT-4.1, o3, and 03-mini models via Azure AI Studio. - The error involves JSON parsing issues during the connection attempt. - Troubleshooting suggestions included verifying API credentials, endpoint URLs, network settings, logs, and model deployment status. - You provided the plugin version as Azure AI Studio v0.0.3 when requested. - The issue remains unresolved and may require further investigation or detailed logs. **Next Steps** - Please confirm if this issue is still relevant with the latest version of the dify-official-plugins repository by commenting here. - If no response is received within 5 days, I will automatically close this issue. Thank you for your understanding and contribution!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#215