Code Monkey home page Code Monkey logo

Comments (8)

amaljosea avatar amaljosea commented on July 1, 2024 1

@unnitallman Please check this video

https://drive.google.com/file/d/1MVT3q9ZZ1FnFWY-ULeQt-Avs3OZnlu3J/view

from journal.

unnitallman avatar unnitallman commented on July 1, 2024 1

@josephv7 Good one. @agneym @amaljosea Please use @josephv7 's solution for now, I will try and fix it properly tomorrow.

from journal.

unnitallman avatar unnitallman commented on July 1, 2024

@amaljosea _a

Please watch this and get back https://share.getcloudapp.com/wbuWlAnv

from journal.

agneym avatar agneym commented on July 1, 2024

I can confirm this is happening, it seems to be connected to the gzip module. curl also fails when using the User-Agent header.

from journal.

josephv7 avatar josephv7 commented on July 1, 2024

I was able to get the response by commenting the contents of config/initializers/rack_deflater.rb.

@unnitallman @agneym

from journal.

unnitallman avatar unnitallman commented on July 1, 2024

@agneym could you post the full curl line, so that i can reproduce it and try to fix it.

from journal.

agneym avatar agneym commented on July 1, 2024

@unnitallman Copied from browser

curl 'http://localhost:3000/api/v1/visits/ongoing' \
  -H 'Connection: keep-alive' \
  -H 'Accept: application/json, text/plain, */*' \
  -H 'X-Auth-Token: PQxy3h9kUMtViLkonECT' \
  -H 'User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1' \
  -H 'Sec-Fetch-Site: same-origin' \
  -H 'Sec-Fetch-Mode: cors' \
  -H 'Sec-Fetch-Dest: empty' \
  -H 'Referer: http://localhost:3000/user' \
  -H 'Accept-Language: en-US,en;q=0.9,ml;q=0.8' \
  -H 'Cookie: CSRF-TOKEN=ke4e1Uif6tMB%2Bf9QeB4MEAeeM%2Fi7guCjxq74ICHDYSBiezF3AyhrQeb7UXgyXJyP6P%2FPC3OjtB5KpaWuUo%2B2qg%3D%3D; _journal_session=It2sNlMoI0gZ8O3xQRLFAQwbAMdKyzTiRvm%2Fut3Xk1F%2BVPez%2FVWeCAm6gBXFVfUCeZ1VahRdfpjxC2tlQn80e61RmU9YbPVssig6nh%2FwE69cIujEVRmdjJfum1wYuVPGQx9s%2BEwyWXZH7noC0a9bSYZ8gGK6brfPRcSv8zhOE6MBhkExxy7fxuJb9Qj6ZF6%2Bopj1KFFFWUxh2GA1Fu%2B%2B8c1UFvsPx0cu%2BjGmZobeO5I8x5uz%2BiqEkvk40CgPBIFYVKJwqE3ANbCvSDn%2Bi8bVv1erVuTZc70H2E%2F11ZAL1hKTzN9T7pEt9rIALIE5piDce6HP9bMj1YvIpWUPelRRhAppKZQ%3D--PEgkgYLGPIjXGpO6--3DasFBtT7DUJM%2BAhG4j2JA%3D%3D' \
  -H 'If-None-Match: W/"ec8fd42d6be76dfef6514d8f89f7474a"' \
  --compressed

from journal.

unnitallman avatar unnitallman commented on July 1, 2024

Fixed in #64

from journal.

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.