下载安卓APP箭头
箭头给我发消息

客服QQ:3315713922

web前端:基于Postman中的报错

作者:chalkbox     来源: https://www.cnblogs.com/chalkbox/p/12041853.html点击数:997发布时间: 2020-03-21 21:18:45

标签: app操作系统API

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同时也是一种中间件,为各种不同平台提供数据共享。

赞(10)
踩(0)
分享到:
华为认证网络工程师 HCIE直播课视频教程