Describe the Bug
Following the curl command in Sonar deep research - Perplexity , got this error curl: (16) Error in the HTTP2 framing layer
. However, when I change model to sonar-pro
, a valid response is returned.
Expected Behavior
Returns success response
Actual Behavior
got error curl: (16) Error in the HTTP2 framing layer
Steps to Reproduce
- Call the API with the request below.
API Request & Response (if applicable)
curl --request POST
–url ``https://api.perplexity.ai/chat/completions``
–header ‘Authorization: Bearer ’
–header ‘Content-Type: application/json’
–data ‘{
“model”: “sonar-deep-research”,
“messages”: [{“role”: “user”, “content”: “Provide an exhaustive analysis of current approaches to achieving net-zero carbon emissions in heavy industry, including technological solutions, policy frameworks, and economic feasibility across different sectors.”}],
“reasoning_effort”: “low”
}’ | jq
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 337 0 0 100 337 0 5 0:01:07 0:01:00 0:00:07 0
curl: (16) Error in the HTTP2 framing layer
Environment
- API Version: sonar-deep-research
- SDK (if applicable): curl 8.7.1
- Operating System: MacOS
Logs or Screenshots (if applicable)
Add any logs or screenshots that can help debug the issue.
Additional Context
Add any other context about the problem here.