ERROR : lexical error: invalid char in json text

Hello, Iā€™m getting the following error when I try to publish my figure using api_create(figure), Any Idea on how to solve it?

Error: lexical error: invalid char in json text.
<meta http-equiv="
(right here) ------^

To achieve a more intelligent lexical error correction, it is necessary to consider not only the isolated word but also its intrasentential context. Context information can be used to obtain expectations on the linguistic attributes of an erroneous word.

Greeting,
Rachel Gomez