Giter Site home page Giter Site logo

API列表查询error about amp HOT 16 CLOSED

anlia260 avatar anlia260 commented on August 28, 2024
API列表查询error

from amp.

Comments (16)

luoye-fe avatar luoye-fe commented on August 28, 2024

给详细一点的错误信息吧,看起来应该是接口给的数据出错了。

from amp.

anlia260 avatar anlia260 commented on August 28, 2024

第一次查询是OK的,但是当我第二次查询的时候会报this指针没有apis的属性。

from amp.

luoye-fe avatar luoye-fe commented on August 28, 2024

额。。。具体的报错信息呢?
看起来是你的项目ID不对,从 mock 跟路径那个地方看你的项目ID是空,然后后台去查询的时候没有具体信息,接口数据不对,前端处理报错了。

from amp.

anlia260 avatar anlia260 commented on August 28, 2024

image
image
@luoye-fe,帮我看下,为什么是500?

from amp.

luoye-fe avatar luoye-fe commented on August 28, 2024

应该是你的api信息填写不对,只支持json格式的返回示例

from amp.

anlia260 avatar anlia260 commented on August 28, 2024

是的,我只是填写返回参数,并没有给返回示例。问下,返回参数有什么用吗?

from amp.

luoye-fe avatar luoye-fe commented on August 28, 2024

返回参数是对返回示例里涉及到的字段的解释

from amp.

luoye-fe avatar luoye-fe commented on August 28, 2024

返回示例必填,空的话给个 {}

from amp.

anlia260 avatar anlia260 commented on August 28, 2024

谢谢 @luoye-fe

from amp.

anlia260 avatar anlia260 commented on August 28, 2024

image
image
报500了会是什么原因呢?

from amp.

luoye-fe avatar luoye-fe commented on August 28, 2024

后台报了什么错?

from amp.

anlia260 avatar anlia260 commented on August 28, 2024

image
这是Pm2的日志

from amp.

anlia260 avatar anlia260 commented on August 28, 2024

可以要你一个IM吗?一直在issues请教这种问题总感觉不好^_^

from amp.

luoye-fe avatar luoye-fe commented on August 28, 2024

url 里的 query 中 id 字段你写的是空,后台没有做这样的处理 = =

XXXX?id=&page=1

id

IM 的话我另一个项目里有 ~

from amp.

anlia260 avatar anlia260 commented on August 28, 2024

我是说你的 即时通讯方式^_^

from amp.

luoye-fe avatar luoye-fe commented on August 28, 2024

拉到最后。。微信截图。。

from amp.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.