Unable to initialize msnodesql - sql-server

I have built an electronJs app. In this app there are two pages. When I run the app with “npm start” it Request the SQL server db and brings the records. as soon as I navigate to another page. It shows me error. Uncaught Error: Unable to initialize msnodesql.
I am using :
mssql
Msnodesqlv8
The statement where the error occurs is
const sql = require(‘mssql/msnodesqlv8’)

Related

requests are working locally but not on Heroku. Getting internal server error 500 and JSON not valid

I built a web application with django and react. It is working perfectly fine locally and the heroku deployment worked fine without issues.
When I am testing the heroku app some of my requests are working fine like login/register. However the request where information is being sent back from the server to be displayed or post requests sending information are giving me the following error
GET [request name] 500 (Internal Server Error)
and
Uncaught (in promise) SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
Would this issue be related to my requirements.txt or Procfile? Since the issue is not happening when the project is run locally and only on heroku.
Could anyone point me in the right direction?

tagging server "Server Error" when trying to deploy Server Tag

I'm trying to deploy manually GTM Server Container. I'm following this configuration guide from google:
https://developers.google.com/tag-manager/serverside/script-user-guide
Everything seems to be working fine however when trying to preview my container I have the following error
Error: Server Error
The server encountered an error and could not complete your request.
Please try again in 30 seconds.
When I'm running the command in the cloud shell gcloud app logs read I have the following error Error: Failed to decode the container config.
Any idea? What can I do?
This might sound very obvious but if anyone if stuck the same way what you need to do is passing the Container Configuration code you get from the GTM interface to the Container config variable when setting up the server.

Debugging a React Azure Web App

I've got a React app running on Azure. It runs fine in my localhost, however, when I go to the Azure address, it doesn't load; all I get is a blank page with a head and body html element, which is throwing the following error:
Uncaught SyntaxError: Unexpected token <
The immediate question, of course, is what's causing the error and how do I fix it?
The bigger question in the background is, with a backend app, I can enable logging and look at a log stream and see what's throwing errors in real time. With a frontend app, the errors are happening in my browser; the React Chrome extension doesn't even recognize this as a React app. How do I debug in this context?

angular2-sails 404 error (not found)

I am having difficulty hooking up my sql server with a front end of angular 2.
I ran the sailsjs getting started guide
I then hooked up angular2 with sails. I followed the sharpten guide
http://sharpten.com/blog/2016/02/02/integrating-angular-2-with-sails-js.html
I then used the sails-sqlserver package to connect to my localhost sql server
sails-sqlserver
I have the sails returning my data and now i want to use angular 2 to interact with the data.
I found the angular2-sails package.
https://www.npmjs.com/package/angular2-sails
However, I am getting a 404 error with the angular2-sails package
ERROR:
zone.js:1382
"GET http: //localhost:1337/node_modules/angular2-sails/ 404 (Not Found)"
How do i get rid of this 404 error?
Thanks.
I got this to work with version 0.1.4 of angular2-sails.
i commented out the sailsmodule due to version 0.1.4 just having the SailsService
//import {SailsModule} from "angular2-sails";
In my component I imported the SailsService
import {SailsService} from "angular2-sails/dist/index";

Can't run Meteor mobile app (GETs failed)

I spent 3 days trying to connect my Meteor mobile app to existing server. It is working well on server and I want to build app with:
meteor run android-device --mobile-server=https://domain.com:443
I tried to do various enviromental variables for ROOT_URL, for example:
ROOT_URL='https://domain.com'
ROOT_URL='https://domain.com:443'
ROOT_URL='https://ip:443' etc.
In any configuration I have problems with GETs. They are canceled or failed. When I set mobile-server to http://domain.com:80 there is error:
WebSocket connection to ws://domain.com/sockjs/363/ruuwxpal/websocket
failed: Error during WebSocket handshake: Unexpected response code:
400
When I set mobile-server to https://domain.com:443 it refuses all GET requests and Meteor.status I jumping between connecting and waiting.
Do you know what can be the problem?

Resources