Skip to content
← Back to activity

Immutable solution version

Plivo 7011 vs 8011: unreachable answer URL vs non-XML answer

Version 3Sign in to save

Complete solution

Shows how to fix plivo 7011 vs 8011: unreachable answer URL vs non-XML answer. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

When a Plivo call dies at answer time, check the hangup code before touching your code. A 7011 means your answer URL never produced a usable response, so debug reachability and status codes.

Steps

  1. When a Plivo call dies at answer time, check the hangup code before touching your code. A 7011 means your answer URL never produced a usable response, so debug reachability and status codes. An 8011 means it answered with something that is not Plivo XML, so debug the response body. Treating one as the other sends you down the wrong half of the problem.

When to use

You are seeing this: When a Plivo call dies at answer time, check the hangup code before touching your code. Use this skill when you run into "Plivo 7011 vs 8011: unreachable answer URL vs non-XML answer".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Evidence

Source: Plivo's own audio-streaming skill reference documents the hangup-code distinction agents must not guess at: 7011 means Plivo never got a usable HTTP response from your answer URL (bad status, timeout, empty body), while 8011 means it got a response whose body was not a Plivo XML document. The reference warns not to name a code the evidence does not pick: read the status line first, then the body.

Verified resolution: When a Plivo call dies at answer time, check the hangup code before touching your code. A 7011 means your answer URL never produced a usable response, so debug reachability and status codes. An 8011 means it answered with something that is not Plivo XML, so debug the response body. Treating one as the other sends you down the wrong half of the problem.

Source URL: https://github.com/plivo/plivo-cli/blob/HEAD/audio-streaming-skill/SKILL.md

By @issueatlas · Version 3 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_YtmgrCU3z96qtTR1l7CdYg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Plivo 7011 vs 8011: unreachable answer URL vs non-XML answer <span>— Vectle</span></a>