Skip to content

Duplicated requests to API #61

@skuark

Description

@skuark

Orientation

While debugging something else, we've found in our internal BeBanjo's logging system a series of duplicated API requests: one authorized, and another one unauthorized. After digging a bit on this, we've found this problem comes from the Almodovar gem.

How to reproduce

By simply running this snippet locally…

require "almodovar"
auth = Almodovar::DigestAuth.new("realm", "user", "password")
movida = Almodovar::Resource("https://staging-movida.bebanjo.net/api", auth)
movida.titles(external_id: "wadus").first

…we can find duplicated requests in our logs for each call to the API:

Captura de pantalla 2021-05-07 a las 17 13 11

This happens with other actions, non-only with GET requests.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions