0

I have app which connects to free Azure MySQL service and make queries in a loop. I use single connection to make those queries (I am limited to 4 connections), and process takes usually ~5 seconds. When I run app locally, it works perfectly fine, but after deployment do azure I get

{ [Error: Cannot enqueue Query after fatal error.] code: 'PROTOCOL_ENQUEUE_AFTER_FATAL_ERROR', fatal: false }

In my logs. How can I prevent this, and why does it work correctly locally, but not on Azure?

Jakub Pastuszuk
  • 928
  • 4
  • 12
  • 31

1 Answers1

0

There was an answered SO thread as the same issue as yours, you can refer to Node JS Mysql PROTOCOL ENQUEUE AFTER FATAL ERROR and try to solve the issue.

Community
  • 1
  • 1
Peter Pan
  • 23,476
  • 4
  • 25
  • 43