Deploy Shiny App on shinyapps.io with blpconnect() function to fetch real time data from Bloomberg - shinyapps

I am trying to build a dashboard that gets real-time data from Bloomberg using functions like bdp, bdh. I am using blpconnect() to establish a connection with Bloomberg, however, when I deploy the app on shinyapps.io, it gives me an error. The app runs on my local computer though.
Log:
2022-07-21T18:16:23.294669+00:00 shinyapps[6670285]: Registered S3 method overwritten by 'quantmod':
**2022-07-21T18:16:23.293756+00:00 shinyapps[6670285]: **
2022-07-21T18:16:23.294230+00:00 shinyapps[6670285]: Attaching package: ‘PerformanceAnalytics’
**2022-07-21T18:16:23.294287+00:00 shinyapps[6670285]: **
2022-07-21T18:16:23.295015+00:00 shinyapps[6670285]: The following object is masked from ‘package:dplyr’:
2022-07-21T18:16:23.294349+00:00 shinyapps[6670285]: The following object is masked from ‘package:graphics’:
2022-07-21T18:16:23.294457+00:00 shinyapps[6670285]: legend
2022-07-21T18:16:23.294611+00:00 shinyapps[6670285]: Loading required package: TTR
2022-07-21T18:16:23.294021+00:00 shinyapps[6670285]: first, last
**2022-07-21T18:16:23.294507+00:00 shinyapps[6670285]: **
**2022-07-21T18:16:23.294960+00:00 shinyapps[6670285]: **
**2022-07-21T18:16:23.293965+00:00 shinyapps[6670285]: **
2022-07-21T18:16:23.294724+00:00 shinyapps[6670285]: method from
**2022-07-21T18:16:23.295071+00:00 shinyapps[6670285]: **
2022-07-21T18:16:23.294908+00:00 shinyapps[6670285]: Attaching package: ‘kableExtra’
2022-07-21T18:16:23.295124+00:00 shinyapps[6670285]: group_rows
2022-07-21T18:16:23.295383+00:00 shinyapps[6670285]: The following object is masked from ‘package:tidyr’:
**2022-07-21T18:16:23.295436+00:00 shinyapps[6670285]: **
2022-07-21T18:16:23.295278+00:00 shinyapps[6670285]: Attaching package: ‘reshape2’
**2022-07-21T18:16:23.295913+00:00 shinyapps[6670285]: **
**2022-07-21T18:16:23.295333+00:00 shinyapps[6670285]: **
**2022-07-21T18:16:23.295541+00:00 shinyapps[6670285]: **
2022-07-21T18:16:23.295969+00:00 shinyapps[6670285]: days, hours, minutes, seconds, years
2022-07-21T18:16:23.295490+00:00 shinyapps[6670285]: smiths
2022-07-21T18:16:23.295661+00:00 shinyapps[6670285]: Please respect the Bloomberg licensing agreement and terms of service.
**2022-07-21T18:16:23.294409+00:00 shinyapps[6670285]: **
**2022-07-21T18:16:23.295174+00:00 shinyapps[6670285]: **
2022-07-21T18:16:23.295595+00:00 shinyapps[6670285]: Rblpapi version 0.3.13 using Blpapi headers 3.8.18.1 and run-time 3.8.18.1.
**2022-07-21T18:16:23.296018+00:00 shinyapps[6670285]: **
**2022-07-21T18:16:23.294781+00:00 shinyapps[6670285]: as.zoo.data.frame zoo **
**2022-07-21T18:16:23.294839+00:00 shinyapps[6670285]: **
**2022-07-21T18:16:23.295224+00:00 shinyapps[6670285]: **
2022-07-21T18:16:23.295763+00:00 shinyapps[6670285]: Attaching package: ‘chron’
**2022-07-21T18:16:23.295814+00:00 shinyapps[6670285]: **
2022-07-21T18:16:23.295862+00:00 shinyapps[6670285]: The following objects are masked from ‘package:lubridate’:
**2022-07-21T18:16:23.295713+00:00 shinyapps[6670285]: **
**2022-07-21T18:16:24.292359+00:00 shinyapps[6670285]: **
2022-07-21T18:16:24.292410+00:00 shinyapps[6670285]: Attaching package: ‘DescTools’
**2022-07-21T18:16:24.292458+00:00 shinyapps[6670285]: **
2022-07-21T18:16:24.292512+00:00 shinyapps[6670285]: The following objects are masked from ‘package:tidyquant’:
**2022-07-21T18:16:24.292556+00:00 shinyapps[6670285]: **
2022-07-21T18:16:24.292599+00:00 shinyapps[6670285]: IRR, NPV, PMT
**2022-07-21T18:16:24.292645+00:00 shinyapps[6670285]: **
**2022-07-21T18:16:24.292685+00:00 shinyapps[6670285]: **
**2022-07-21T18:16:24.292765+00:00 shinyapps[6670285]: **
**2022-07-21T18:16:24.292723+00:00 shinyapps[6670285]: 21JUL2022_18:16:24.224 49:140583829202688 ERROR blpapi_platformtransporttcp.cpp:671 blpapi.session.transporttcp.{1}.<127.0.0.1:8194> Connection failed **
**2022-07-21T18:16:24.292806+00:00 shinyapps[6670285]: 21JUL2022_18:16:24.224 49:140583829202688 WARN blpapi_platformcontroller.cpp:371 blpapi.session.platformcontroller.{1} Platform: 0 failed 1 consecutive connect attempts, stopped trying to reconnect. **
2022-07-21T18:16:24.292841+00:00 shinyapps[6670285]: Error in value[3L] : Failed to start session.
2022-07-21T18:16:24.292923+00:00 shinyapps[6670285]: Execution halted
2022-07-21T18:16:24.292882+00:00 shinyapps[6670285]: Calls: local ... tryCatch -> tryCatchList -> tryCatchOne ->
2022-07-21T18:16:24.292961+00:00 shinyapps[6670285]: Shiny application exiting ...
Is there any way to fetch Bloomberg data into the shiny app on the shinyapps.io server?

There is no way to fetch this data on the Shinyapps.io-Server. Since the rblpapi is accessing your local bloomberg instance, which is not running on the shinyapps.io-server, it is not possible for the app to access the data on the server, and this is the reason why your local app version is able to fetch the data.
Futhermore, check the Bloomberg license agreement. They are very strict and percise where you are allowed to access and use the provided data. I highly question that you are allowed to use their real time data in an external cloud based app.

Related

ERROR: PrepareVirtualHardDisk: AttachVirtualDisk failed with error 0x80070522

I followed this tutorial to create a basic image of Windows IOT Core:
https://learn.microsoft.com/en-us/windows-hardware/manufacture/iot/create-a-basic-image
I run IoTCorePShell.cmd as an administrator.
All the previous steps was successful, but I encountered an error while running this step:
New-IoTFFUImage ProductA Test
(or) buildimage ProductA Test
Here the errors:
PS C:\MyWorkspace>New-IoTFFUImage ProductA Test
ADK_VERSION : 10.0.17763.1
IOTCORE_VER : 10.0.17763.253
BSP_VERSION : 10.0.0.0
ADDONKITVER : 6.0.190307.1402
HostOS Info : Microsoft Windows 10 Enterprise - 10.0.17763 - en-US fr-CA
Validating product feature ids
Reading feature ids in C:\MyWorkspace\Source-arm\BSP\Rpi2\Packages\RPi2FM.xml
Reading feature ids in C:\MyWorkspace\Common\Packages\OEMCommonFM.xml
Reading feature ids in C:\MyWorkspace\Source-arm\Packages\OEMFM.xml
Checking Microsoft features in OEMInput file..
Warning: IOT_APPLICATIONS is not defined
Warning: IOT_GENERIC_POP is not defined
Checking OEM features in OEMInput file..
Building product specific packages
Processing Registry.Version.wm.xml
Processing Custom.Cmd.wm.xml
Processing Provisioning.Auto.wm.xml
Processing Recovery.WinPE.wm.xml
Building FM files..
Exporting OEM FM files..
Processing OEMFMList..
Exporting RPi2 BSP FM files
Processing RPi2FMFileList.xml
Creating Image..
See C:\MyWorkspace\Build\arm\ProductA_Test.log for progress
This will take a while...
ThreadId2588 ERROR: PrepareVirtualHardDisk: AttachVirtualDisk failed with error 0x80070522
ThreadId2588 ERROR: CreateVirtualHardDisk: OpenDiskInternal failed with error 0x80070522
ThreadId2588 ERROR: Imaging!CreateImage: Failed to create FFU: CreateVirtualHardDisk failed with error code: 80070522
ThreadId2588 ERROR: CreateVirtualHardDisk failed with error code: 80070522
Error: Build failed
False
IoTCorePShell arm 10.0.0.0 Test
any idea?
SOLUTION: There was an IT policy that no new storage media shall be attached. Update your group policy or Temporary deactivation solved the problem.

BYFN.sh failed with error when setting up MSP of type bccsp

I am trying the first-network demo on OS X and am getting the following error. I have tried searching for an answer. I did found one here but it appears that is for Ubuntu. All the commands didn't work on OS X.
Can anyone suggest a solution on OS X? Thanks!
2018-11-02 03:13:45.696 UTC [main] main -> ERRO 001 Cannot run peer
because error when setting up MSP of type bccsp from directory
/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin#org1.example.com/msp:
could not initialize BCCSP Factories: Failed initializing PKCS11.BCCSP
%!s(): Could not initialize BCCSP PKCS11 [Failed to initialize
software key store: An invalid KeyStore path provided. Path cannot be
an empty string.] !!!!!!!!!!!!!!! Channel creation failed
!!!!!!!!!!!!!!!!
========= ERROR !!! FAILED to execute End-2-End Scenario ==========
The error message is not very specific.
In my case, I was trying to connect to a peer from my fabric-tools container, and there was a TLS enabled mismatch (fabric-tools has TLS enabled, and fabric-peer had TLS disabled). Aligning the TLS configuration made the error go away.
Might help someone out...

Tsung crashes with ** Reason for termination == ** {{badmatch,false}

I am using tsung ,compiled with openssl and erlang for sending queries.
In the tsung_controller.log I am getting this error :
** Reason for termination ==
** {{badmatch,false},
[{ts_config_server,handle_call,3,
[{file,"src/tsung_controller/ts_config_server.erl"},
{line,305}]},
{gen_server,try_handle_call,4,[{file,"gen_server.erl"},{line,628}]},
{gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,660}]},
{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,238}]}]}
And:
=ERROR REPORT==== 17-Aug-2015::01:07:42 ===
** Generic server ts_config_server terminating
** Last message in was {get_client_config,static,"*****commented this **"}
** When Server state == {state,
{config,undefined,1200,5,none,text,undefined,
I have verified that the setup using the information from user manual
http://tsung.erlang-projects.org/user_manual/faq.html and getting OK.
so setup looks fine to me .But I am not able to figure out the exact reason for crash.
At some forum I have seen the answer that the query file mentioned in the .xml file could be the reason.But I have tried with absolute and relative path ,unfortunately it does not seem to work.
according to this message from 10 years ago in their mailing list
and my experience today, you are probably using a Fully Qualified Host Name instead of a short hostname .e.g. "mymachine.domain.tld" instead of "mymachine" as a value for the host attribute in the client tag, as the documentation points on in item 10.1

Webcam Performance System Test - WNCameraRequirements - Error: parseEtl Failed with error REGDB_E_CLASSNOTREG (0x80040154)

I am running whck performance tests on our camera, the test that currently fails is:
Webcam Performance System Test - WNCameraRequirements
the test iterates thourgh the camera media types and records a etl file as expected, its stops and closes the camera but then the test fails due to the parsing of the etl file, the logs:
Start Operation: parseEtl average 250 endGuid
{B8197C10-845F-40ca-82AB-9341E98CFC2B} endId 215 max 275 name Time to
switch Preview MediaTypes scenario DiffEventSeries skip 1 startGuid
{B8197C10-845F-40ca-82AB-9341E98CFC2B} startId 243
Parsing Etl: previewIterateMediaTypes_7-20_10-22-58.etl
Warning: CoCreateInstance(CLSID_EtwFilter, NULL, CLSCTX_ALL, IID_IEtwFilter,
(void**)spEtwFilter.ReleaseAndGetAddressOf()) failed with
REGDB_E_CLASSNOTREG (0x80040154)
Warning:
* File: testsrc\multimediatest\common\helpers\capture\videocaptureperf\videocaptureperf.cpp
Ln: 260
Warning: DiffEventSeries( etlFileName, pszStartEventGuid,
startId, pszEndEventGuid, endId, &min, &max, &ave, skip,
m_spLog.Get()) failed with REGDB_E_CLASSNOTREG (0x80040154)
Warning:
* File: testsrc\multimediatest\common\helpers\capture\captureengine\captureengineautomation.cpp
Ln: 2109
Error: parseEtl Failed with error REGDB_E_CLASSNOTREG
(0x80040154)
I tried searcing for a missing dll for ETW but I found nothing related. seems like theres a bug in the whck test while trying to parse the generated etl file... is this Error seems familier to anyone??
thanks!
I used the wrong whql tests platform version (needed x64), and I needed to regsvr32 etwpatterns.dll. that being said, this test is filtered out by microsoft (whql filters) so we eventually ignored it.

How to analyze exception after Chrome Aw Snap using windbg

I keep having "Aw Snap" in my web application. Using windbg and with the help of How do I debug a tab crash in Google Chrome I tried to figure out the problem.
Step I've done so far:
Got a .dmp file from Crashes directory
Loaded it into windbg
Managed to see the stack (using "k")
When trying !analyze does not show anything meaningful
What do I need to see the module that cause the crash
How to progress from here?
EDIT:
There was a typo. "!analyze -v" does the work which is similar to:
kb, dd, .exr, .cxr, kv
For all Chrome AwSnappers - !analyze -v is what you are looking for
Info below...
0:000> !analyze
*******************************************************************************
* *
* Exception Analysis *
* *
*******************************************************************************
Use !analyze -v to get detailed debugging information.
GetPageUrlData failed, server returned HTTP status 404
URL requested: http://watson.microsoft.com/StageOne/chrome_exe/27_0_1446_3/5148bbf0/unknown/0_0_0_0/bbbbbbb4/c0000005/24430fba.htm?Retriage=1
Probably caused by : chrome.dll ( chrome!v8::internal::Invoke+14a )
Followup: MachineOwner
---------
0:000> analyze -v
*** WARNING: Unable to verify timestamp for pdf.dll
*** ERROR: Module load completed but symbols could not be loaded for pdf.dll
*** WARNING: Unable to verify timestamp for icudt.dll
*** ERROR: Module load completed but symbols could not be loaded for icudt.dll
*** WARNING: Unable to verify timestamp for ppGoogleNaClPluginChrome.dll
The stack shows this:
0:000> k
ChildEBP RetAddr
0039e438 76ea15e9 ntdll!ZwWaitForMultipleObjects+0x15
0039e4d4 75dc1a2c KERNELBASE!WaitForMultipleObjectsEx+0x100
0039e51c 75dc4220 kernel32!WaitForMultipleObjectsExImplementation+0xe0
0039e538 012d0572 kernel32!WaitForMultipleObjects+0x18
0039e55c 012d0688 chrome!google_breakpad::CrashGenerationClient::SignalCrashEventAndWait+0x45 [c:\b\build\slave\win\build\src\breakpad\src\client\windows\crash_generation\crash_generation_client.cc # 369]
0039e56c 012cfb89 chrome!google_breakpad::CrashGenerationClient::RequestDump+0x4f [c:\b\build\slave\win\build\src\breakpad\src\client\windows\crash_generation\crash_generation_client.cc # 333]
0039e588 012cff6a chrome!google_breakpad::ExceptionHandler::WriteMinidumpWithException+0x30 [c:\b\build\slave\win\build\src\breakpad\src\client\windows\handler\exception_handler.cc # 817]
0039e5ac 75e0003f chrome!google_breakpad::ExceptionHandler::HandleException+0x46 [c:\b\build\slave\win\build\src\breakpad\src\client\windows\handler\exception_handler.cc # 476]
0039e634 779774df kernel32!UnhandledExceptionFilter+0x127
0039e63c 779773bc ntdll!__RtlUserThreadStart+0x62
0039e650 77977261 ntdll!_EH4_CallFilterFunc+0x12
0039e678 7795b459 ntdll!_except_handler4+0x8e
0039e69c 7795b42b ntdll!ExecuteHandler2+0x26
0039e6c0 7795b3ce ntdll!ExecuteHandler+0x24
0039e74c 77910133 ntdll!RtlDispatchException+0x127
0039e74c 00000000 ntdll!KiUserExceptionDispatcher+0xf
0039e634 779774df kernel32!UnhandledExceptionFilter+0x127
The UnhandledExceptionFilter function is called when no exception handler is defined to handle the exception that is raised.
HOW TO: Find the Problem Exception Stack When You Receive an UnhandledExceptionFilter Call in the Stack Trace

Resources