Giter Site home page Giter Site logo

sinatra-test's Introduction

Example Sinatra application to demonstrate a timeout issue in Firefox

The issue

There is a NetworkError that happens 30 seconds after the request is made. It doesn't happen in Chrome, or when request is sent via CURL.

How to reproduce

  1. Run this service in Google Cloud Run or Google Cloud App Engine. Most likely the problem would happen with other services too, but many of them (heroku, scalingo) have 30 seconds timeout enforced on the server side, so I wasn't able to reproduce that on them. You can use bin/beploy script like this: PROJECT=your_google_cloud_project_name bin/deploy
  2. Open Web Developer Tools
  3. When you click "Link 2" (which sends a request to which server responds in 2 seconds), everything works fine), but when you click "Link 31" or "Link 45" (which take respectively 31 and 45 seconds for the server to respond), you will see Uncaught (in promise) TypeError: NetworkError when attempting to fetch resource. in the Web Developers Tools console.

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.