web前端:基于Postman中的报错

    作者:chalkbox 更新于: 2020-03-21 21:18:40

    Web开发

      API就是操作系统留给应用程序的一个调用接口,应用程序通过调用操作系统的API而使操作系统去执行应用程序的命令。

      应用程序接口是一组定义、程序及协议的集合,通过API接口实现计算机软件之间的相互通信。

      Postman中的报错:

      Couldnotgetanyresponse错误

      Couldnotgetanyresponse

      Therewasanerrorconnectingtohttp://127.0.0.1:8888/api/private/v1/login.

      Whythismighthavehappened:

      Theservercouldn'tsendaresponse:

      Ensurethatthebackendisworkingproperly

      Self-signedSSLcertificatesarebeingblocked:

      Fixthisbyturningoff'SSLcertificateverification'inSettings>General

      Proxyconfiguredincorrectly

      EnsurethatproxyisconfiguredcorrectlyinSettings>Proxy

      Requesttimeout:

      ChangerequesttimeoutinSettings>General

      原因:为打开接口文件app.js

      解决方法:

      API项目中shift+右键打开命令行输入:nodeapp运行

      报错解决!

      API的一个主要功能是提供通用功能集。程序员通过调用API函数对应用程序进行开发,可以减轻编程任务。API同时也是一种中间件,为各种不同平台提供数据共享。

课课家教育

未登录

1