Code Monkey home page Code Monkey logo

Comments (2)

benubois avatar benubois commented on August 15, 2024

Hi @jaredsinclair,

I think I see what's going on and have hopefully fixed the issue. I updated Rails last night and something did change that would prevent Unread from syncing.

Looking at the traffic from Charles Proxy I can see most requests that Unread makes for an initial sync go through successfully:

GET /v2/unread_entries.json HTTP/1.1
Host: api.feedbin.me
User-Agent: Unread/105 (iPhone; iOS 7.1.1; Scale/2.00)
Authorization: Basic XXXXXXXXXXXXXXXX==

However the /entries.json requests that are failing look a little different:

GET /v2/entries.json HTTP/1.1
Host: api.feedbin.me
User-Agent: Unread/105 (iPhone; iOS 7.1.1; Scale/2.00)
Authorization: XXXXXXXXXXXXXXXX==

The difference is that the Authorization header does not specify that it is using Basic authentication.

In other words:

  • Authorization: Basic XXXXXXXXXXXXXXXX== Works
  • Authorization: XXXXXXXXXXXXXXXX== Does not work

Why did this stop working? Good question.

I found a pull request that has been merged into the version of Rails that Feedbin is now using that checks if the authorization scheme is Basic.

I've made a change to prepend Basic to Authorization headers that are missing it which should allow customers to sync successfully again.

It would probably also be good to have Unread use Basic in a future update.

from feedbin-api.

jaredsinclair avatar jaredsinclair commented on August 15, 2024

Thanks! I will do that.

Sent from my iPhone

On Jul 8, 2014, at 12:05 PM, Ben Ubois [email protected] wrote:

Hi @jaredsinclair,

I think I see what's going on and have hopefully fixed the issue. I updated Rails last night and something did change that would prevent Unread from syncing.

Looking at the traffic from Charles Proxy I can see most requests that Unread makes for an initial sync go through successfully:

GET /v2/unread_entries.json HTTP/1.1
Host: api.feedbin.me
User-Agent: Unread/105 (iPhone; iOS 7.1.1; Scale/2.00)
Authorization: Basic XXXXXXXXXXXXXXXX==
However the /entries.json requests that are failing look a little different:

GET /v2/entries.json HTTP/1.1
Host: api.feedbin.me
User-Agent: Unread/105 (iPhone; iOS 7.1.1; Scale/2.00)
Authorization: XXXXXXXXXXXXXXXX==
The difference is that the Authorization header does not specify that it is using Basic authentication.

In other words:

Authorization: Basic XXXXXXXXXXXXXXXX== Works
Authorization: XXXXXXXXXXXXXXXX== Does not work
Why did this stop working? Good question.

I found a pull request that has been merged into the version of Rails that Feedbin is now using that checks if the authorization scheme is Basic.

I've made a change to prepend Basic to Authorization headers that are missing it which should allow customers to sync successfully again.

It would probably also be good to have Unread use Basic in a future update.


Reply to this email directly or view it on GitHub.

from feedbin-api.

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.