Git Product home page Git Product logo

Comments (3)

adrienjoly avatar adrienjoly commented on May 30, 2024

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.

adrienjoly avatar adrienjoly commented on May 30, 2024

=> To fix: make sure that the limit parameter is never sent more than once in a HTTP API request.

from openwhyd-ios.

adrienjoly avatar adrienjoly commented on May 30, 2024

Should be fixed now. Made the back-end more tolerant for that.

from openwhyd-ios.

Related Issues (6)

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.