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?

3
  • Do you have 'express-sql-session' or 'express-mysql-session' in your proeject? Try to remove it and deploy to azure again. Commented Apr 13, 2016 at 2:19
  • i just have MysQL (it's MysQL database) Commented Apr 14, 2016 at 9:24
  • Here is my code snippet, I do not use Express, it's plain node.js application: pastebin.com/j0wZqm7P Commented Apr 14, 2016 at 10:48

1 Answer 1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.