Git Product home page Git Product logo

jsonbird's People

Contributors

xcss avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jsonbird's Issues

关于IP接口的一个小建议

希望把省份和城市分开,这样方便许多,直接定义名就好如“海南”“海口”,不用在后面加上“省”“市”,个人一点小建议 这样更方便自定义而已

get请求,无法执行自定义header的HTTP请求

浏览器控制台报错:
Access to XMLHttpRequest at 'https://bird.ioliu.cn/v2?url=xxxx' from origin 'http://localhost:8080' has been blocked by CORS policy: Request header field token is not allowed by Access-Control-Allow-Headers in preflight response.

以下是Vue工程中的请求部分(使用axios)
BASE_URL2是v2的请求地址(https://bird.ioliu.cn/v2?url=)
let axios_ = axios.create({ headers:{ token:this.$store.state.token }, timeout:10000, withCredentials:false }) axios_.get(common.BASE_URL2+'xxx/student/'+this.$store.state.user+'.do?timestamp='+new Date().getTime()) .then(res=>{ console.log(res) })

post请求,content-type为application/json时,无法传参数

post请求,content-type为application/json时,无法传参数,参数结构为:

{ "msgtype": "text", "text": { "content": "我就是我, 是不一样的烟火@156xxxx8827" }, "at": { "atMobiles": [ "156xxxx8827", "189xxxx8325" ], "isAtAll": false } }

v1代理的返回状态400????

{"data":{},"status":{"code":-1,"message":{"original":null,"response":{"req":{"method":"GET","url":"https://api.douban.com/v2/movie/us_box","headers":{"user-agent":"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36","hm_lvt_930e83393fcca01f1abff14df21cec12":"1497015332","hm_lpvt_930e83393fcca01f1abff14df21cec12":"1497018297"}},"header":{"date":"Fri, 09 Jun 2017 14:34:25 GMT","content-type":"application/json; charset=utf-8","content-length":"91","connection":"close","expires":"-1","set-cookie":["bid=_eznLkZp0vk; Expires=Sat, 09-Jun-18 14:34:25 GMT; Domain=.douban.com; Path=/"],"x-douban-newbid":"_eznLkZp0vk","x-dae-node":"sindar18a","x-dae-app":"movie","server":"dae"},"status":400,"text":"{"msg":"rate_limit_exceeded2: 120.77.67.63","code":112,"request":"GET \/v2\/movie\/us_box"}"},"status":400}}}

网易云疑似被风控

本地起了一个 JsonBird 请求网易云无法返回音乐mp3直连
image
但是使用wiki提供的接口可以获取

本来是正常的 今天突然就不行了

感谢帮助

请求头带的数据信息无法传递到后台

使用https://bird.ioliu.cn/v1?url=http://stg3-web.itp-live.pingan.com.cn:13080/live/sdk/entryLiveRoom.do
发现ajax 请求头内带的附加的信息
Connection:keep-alive
Content-Length:18
content-type:application/x-www-form-urlencoded;charset=UTF-8
device:4
Host:bird.ioliu.cn
imei:
nonce:50
Origin:http://1035291532.appservice.open.weixin.qq.com
Pragma:no-cache
Referer:https://servicewechat.com/wx34eff525599bcf25/devtools/page-frame.html
sign:228e9d7dad144cc6338cfc6e98ef8e8b876dc025
timestamp:1498733930
token:dBtTBYF2NShs0eXKOoIrmCrrHz3Xqmyt014FoMfHID6/CzxSCT0+17aNJ62ZMxPd3moW75motfqXSPjRjHhyKA==
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36 appservice webview/100000
version:2
X-Requested-With:XMLHttpRequest
无法传递过去,后台无法获取到

这么好的东西希望能够多推广

这么好的东西希望能够多推广,至少我是告诉了身边的朋友们,也希望作者能够不断更新新的功能,完善接口文档,比如自定义header如何使用,希望这个不会停用.

关于跨域遇到一个问题

return axios.get("http://l.fteam.cc/v1/?url=http://uc.365xy.net:8050/blog/list",{})
return axios.get("https://bird.ioliu.cn/v1?url=http://uc.365xy.net:8050/blog/list",{})

我下了你的项目,运行起来了。配置了一个本地127.0.0.1 的域名 就是l.fteam.cc
但是我的请求就出出现跨域问题,你的域名就不会,是不是服务端,还要配置什么呢,谢谢
下面这个图片是报错信息
qq20170408-203004 2x

对于get请求的header设置

JS无法设置请求头Referer,如果是POST请求的话jsonbird使用params写入headers应该可以绕开这个机制,但是GET请求就没有办法做到了。不知道是否可以增加对此需求的解决方案?

以下是我使用的例子
https://bird.ioliu.cn/v2?url=http://api.xiami.com/web?v=2.0&app_key=1&key=女儿情&page=1&limit=10&r=search/songs
请求头:
"Referer":"http://m.xiami.com/"

使用postman可以顺利完成这个请求,但是在浏览器执行js时就会抛出错误refused to set unsafe header referer

必须赞一个

真的好用,不用ssl认证也可以进行正常的http请求了,但还是不明白原理

无法启动

/opt/JsonBird

/usr/bin/npm start

[email protected] start /opt/JsonBird
supervisor node ./bin/www

sh: 1: supervisor: not found

npm ERR! Linux 4.4.13-v7+
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "start"
npm ERR! node v4.8.1
npm ERR! npm v2.15.11
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! [email protected] start: supervisor node ./bin/www
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] start script 'supervisor node ./bin/www'.
npm ERR! This is most likely a problem with the JsonBird package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! supervisor node ./bin/www
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs JsonBird
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR! npm owner ls JsonBird
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /opt/JsonBird/npm-debug.log

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.