<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic WebSocketServer throwing UnhandledPromiseRejectionWarning in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/WebSocketServer-throwing-UnhandledPromiseRejectionWarning/m-p/2970032#M40314</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am building&amp;nbsp; a new Custom Visual for Google maps integrated with the api key.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but I am getting compilation error as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;(node:2784) UnhandledPromiseRejectionWarning: C:\Users\shashekh\AppData\Roaming\npm\node_modules\powerbi-visuals-tools\node_modules\webpack-dev-server\lib\servers\WebsocketServer.js:10
  static heartbeatInterval = 1000;
                           ^

SyntaxError: Unexpected token =
    at new Script (vm.js:80:7)
    at createScript (vm.js:274:10)
    at Object.runInThisContext (vm.js:326:10)
    at Module._compile (internal/modules/cjs/loader.js:664:28)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
    at Module.load (internal/modules/cjs/loader.js:600:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
    at Function.Module._load (internal/modules/cjs/loader.js:531:3)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:22:18)
(node:2784) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:2784) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My node version is : 10.15.3&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;powerbi-visuals-api&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;5.1.0&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for helping!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Dec 2022 07:58:46 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-12-15T07:58:46Z</dc:date>
    <item>
      <title>WebSocketServer throwing UnhandledPromiseRejectionWarning</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/WebSocketServer-throwing-UnhandledPromiseRejectionWarning/m-p/2970032#M40314</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am building&amp;nbsp; a new Custom Visual for Google maps integrated with the api key.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but I am getting compilation error as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;(node:2784) UnhandledPromiseRejectionWarning: C:\Users\shashekh\AppData\Roaming\npm\node_modules\powerbi-visuals-tools\node_modules\webpack-dev-server\lib\servers\WebsocketServer.js:10
  static heartbeatInterval = 1000;
                           ^

SyntaxError: Unexpected token =
    at new Script (vm.js:80:7)
    at createScript (vm.js:274:10)
    at Object.runInThisContext (vm.js:326:10)
    at Module._compile (internal/modules/cjs/loader.js:664:28)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
    at Module.load (internal/modules/cjs/loader.js:600:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
    at Function.Module._load (internal/modules/cjs/loader.js:531:3)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:22:18)
(node:2784) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:2784) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My node version is : 10.15.3&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;powerbi-visuals-api&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;5.1.0&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for helping!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 07:58:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/WebSocketServer-throwing-UnhandledPromiseRejectionWarning/m-p/2970032#M40314</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-15T07:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: WebSocketServer throwing UnhandledPromiseRejectionWarning</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/WebSocketServer-throwing-UnhandledPromiseRejectionWarning/m-p/2972074#M40335</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;HI&amp;nbsp;@Anonymous&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;According to the error message, it seems like an 'unexpected token' appeared in your function and you haven't set any ‘try catch’ model to catch/trace the detailed error message do these code directly exited without any results.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;I'd like to suggest following the error message code lines to check them and setting if statement to exclude not match value and 'try catch' model to trace detailed error message.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2022 01:28:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/WebSocketServer-throwing-UnhandledPromiseRejectionWarning/m-p/2972074#M40335</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-16T01:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: WebSocketServer throwing UnhandledPromiseRejectionWarning</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/WebSocketServer-throwing-UnhandledPromiseRejectionWarning/m-p/2972774#M40345</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;This issue is coming up even if try to create a new visual which by default gets generated when you run the command :- pbiviz new sampleVisual&lt;/P&gt;&lt;P&gt;as well&amp;nbsp; it is pointing to a node&amp;nbsp; module&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;WebsocketServer at this line :&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;module.exports = class WebsocketServer extends BaseServer {
  static heartbeatInterval = 1000;&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;Is there any specification that I need to change in my machine for this?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2022 07:47:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/WebSocketServer-throwing-UnhandledPromiseRejectionWarning/m-p/2972774#M40345</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-16T07:47:06Z</dc:date>
    </item>
  </channel>
</rss>

