GithubHelp home page GithubHelp logo

豆瓣请求 400 bad Request about caz HOT 5 CLOSED

zce avatar zce commented on May 3, 2024
豆瓣请求 400 bad Request

from caz.

Comments (5)

yukunqi avatar yukunqi commented on May 3, 2024

发现了问题的原因了,原因就是在小程序的wx.request里面默认的header的请求头中会带content-type application/json 发送过去之后 可能作者的服务器那边没有解析到参数导致400 。 我把content-type 改成空格就可以正常请求了。

from caz.

zce avatar zce commented on May 3, 2024

你这是说的什么呀?能不能把话说清楚了~

from caz.

yukunqi avatar yukunqi commented on May 3, 2024

我说的意思是直接使用这个接口在小程序上请求会报错,需要修改header。

from caz.

zce avatar zce commented on May 3, 2024

👌我是看你的第一个 comment,确实没看懂~
给个建议:以后能不能写完过后自己看一遍,看看能不能看清,有没有描述清楚。

from caz.

yukunqi avatar yukunqi commented on May 3, 2024

明白

from caz.

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.