Git Product home page Git Product logo

Comments (5)

wuomzfx avatar wuomzfx commented on August 15, 2024 1

@dreamsky 看了下,主要是因为请求头跟返回头一起约束不一致导致的。
比如上面这个示例,直接配置成代理模式,请求mock地址是ok的,但是在api-mocker.com上通过测试进行代理转发不行。因为请求头要求接受json,但返回头又指定text,再加上content-length不一致,就500了。
建议自己约定一下客户端与服务端的请求头一致,应该就ok了。我发个dev,将content-length删去,但是其他请求头我还是先不删了,因为可能就是有特殊需求的。 027ad7d

from api-mocker.

dreamsky avatar dreamsky commented on August 15, 2024 1

@wuomzfx 👍 响应很及时!感谢!

from api-mocker.

wuomzfx avatar wuomzfx commented on August 15, 2024

先核对下地址是不是绝对路径,然后再核对下 地址 是否确实真实可访问

from api-mocker.

wuomzfx avatar wuomzfx commented on August 15, 2024

@dreamsky http://api-mocker.com 上给个示例看看

from api-mocker.

dreamsky avatar dreamsky commented on August 15, 2024

@wuomzfx 用了你们网站一个例子哈
http://api-mocker.com/#/edit/5a67284f83bb81687f750a07/5a67e634866016688538df97

from api-mocker.

Related Issues (20)

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.