Comments (3)
Results of investigation on the back-end side:
After activating the logging of GET parameters of incoming requests on openwhyd.org, I used the iOS app to open a playlist, and observed the following trace:
=== Fri, 18 Aug 2017 11:48:07 GMT GET /u/4d94501d1f78ac091dbc9b4d/playlist/61?format=json&limit=1000&limit=20 (userLibrary.controller) {"format":"json","limit":["1000","20"],"id":"4d94501d1f78ac091dbc9b4d","playlistId":"61"}
fetching user { _id: 4d94501d1f78ac091dbc9b4d } ...
fetchPlaylists: 14.517ms
fetchStats: 11.812ms
fetchLikes: 1.001ms
fetchNbTracks: 9.095ms
=> fetched 0 posts
fetchAndRender: 5.602ms
=> the iOS app is indeed sending two values for the
limit
parameter:/u/4d94501d1f78ac091dbc9b4d/playlist/61?format=json&limit=1000&limit=20
, which is probably causing the bug.
from openwhyd-ios.
=> To fix: make sure that the limit
parameter is never sent more than once in a HTTP API request.
from openwhyd-ios.
Should be fixed now. Made the back-end more tolerant for that.
from openwhyd-ios.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openwhyd-ios.