axios:未捕获(承诺)错误:请求失败,状态码为415

时间:2020-08-11 13:27:00

标签: reactjs asp.net-core axios

我使用Axios将数据发布到EndPoint,但是在发布数据后,axios告诉我:

\documentclass{article}
\usepackage{xcolor}
%CustomColorDefsHere

\begin{document}

\textcolor{oneColor}{The first color}
\textcolor{twoColor}{The second color}
\textcolor{threeColor}{The third color}

\end{document}

我的代码:

Uncaught (in promise) Error: Request failed with status code 415

我的EndPoint:(ASP.NET Core 3.1)

 Axios.post('/api/formula/', this.rowsMap, {
      headers: {
        'Content-Type': 'application/json',
      },
    });
  };

0 个答案:

没有答案