I have deployed an XPages app to bluemix and untill now I have not come further than an Error 500 message.
The error page does not seem to come up. I can not access log.nsf. Can I bring in openlog.nsf?
I am not sure what my options are so far?
When you click on your application in the Bluemix dashboard
In the left menu there will be an entry 'Logs'
There you see your log files, via dropdowns you can narrow down your log by logtype or channel,
Related
Trying to create custom event in Application Insights but it doesn't show up on Azure Portal. All other events like requests, dependencies, exception are visible.
I have tried in dotnet core and can see following in debug log, but still no event in portal, even custom event table is empty:
Application Insights Telemetry: {"name":"Microsoft.ApplicationInsights.Dev.<instrumentkey>.Event","time":"2019-12-05T19:16:34.1373921Z","iKey":"<instrument key>","tags":{"ai.application.ver":"1.0.0.0","ai.cloud.roleInstance":"<role>","ai.session.id":"<session>","ai.user.id":"<user>","ai.operation.id":"<operation>","ai.operation.parentId":"|<some ids>","ai.operation.name":"GET /auth/login","ai.location.ip":"::1","ai.internal.sdkVersion":"dotnetc:2.11.0-21474","ai.internal.nodeName":"<subscription>"},"data":{"baseType":"EventData","baseData":{"ver":2,"name":"SAML_Authentication_Initiated","properties":{"DeveloperMode":"true","AspNetCoreEnvironment":"Local"}}}}
Tried from javascript as well, can see following successful post request in browser console:
POST https://dc.services.visualstudio.com/v2/track
[{"time":"2019-12-05T19:00:21.781Z","iKey":"<instrumentkey>","name":"Microsoft.ApplicationInsights.<instrumentkey>.Event","tags":{"ai.user.id":"<user>","ai.session.id":"<session>","ai.device.id":"browser","ai.device.type":"Browser","ai.operation.name":"/public","ai.operation.id":"<operationid>","ai.internal.sdkVersion":"javascript:2.3.1"},"data":{"baseType":"EventData","baseData":{"ver":2,"name":"CustomEvent","properties":{},"measurements":{}}}}]
Response
{"itemsReceived":1,"itemsAccepted":1,"errors":[],"appId":"<application id>"}
Not sure how much time Azure needs to process custom event or should I create support ticket or something is wrong at my end.
Application insights usually takes 3-5 minutes before data begins appearing in the portal, see the Note section of this official doc.
If you worry about the data is missing, you can use Flush() method.
And if it always takes more than 5 minutes before data appearing in portal, you should consider opening a support ticket to get professional help.
I want to send emails to myself from azure with error and its details when server receives 500 error.
I don't wont to receive messages that something happened (events works the same if I am not mistaken).
Is it possible?
I know that I can find all errors with details in https://{site-name}.scm.azurewebsites.net/websitelogs/#/detailederrors
But how to get text from new file I don't know.
Please help me.
EDIT 1.
I found streaming logs - Recent -> {site-name} -> tools -> streaming logs.
Here I can see all errors in real time. But I can't find where I can send these errors in my email.
I think the web app dashboard does not support alerting directly. You should activate application insights on your web app and then you'll be able to configure email alert on failed request.
This page will help you with working with application insights alerts: https://azure.microsoft.com/en-us/documentation/articles/app-insights-alerts/
Hope this helps,
Julien
I am getting this error:
API Error Code: 191
API Error Description: The specified URL is not owned by the application
Error Message: Invalid redirect_uri: Given URL is not allowed by the Application configuration.
When browsing to this page.
https://www.facebook.com/dialog/oauth?response_type=code&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fusers%2Fauth%2Ffacebook%2Fcallback&scope=email%2Cuser_about_me&client_id=clientid&type=web_server
I ofcourse googled around and found this topic:
Facebook API error 191
It says that add your page URL to facebook. I have been going through all tabs in facebook under my created App and there is no input box for page URL.
I also see that this answer is from early 2012 and possibly outdated, how should it be done in 2013?
If you go to "http://developers.facebook.com" you should be able to login, click on "Apps" at the top. From there you can click on "Edit Settings" for the app that you are testing (or creating). I took a screen shot of what that looks like:
My guess is there is an error in the field "App Domains", or in the "Site URL" field. You will want to make sure that your url and domain(s) are correct. Hopefully this helps or at least sets you on the right track.
One more suggestion - it looks like you are testing using "localhost". If you are developing on a windows system you can improve the quality of your tests by editing the hosts file and registering your actual host name. OSX or other operating systems have similar mechanisms for registering a host name. Once you have done this you can bind IIS or Apache to that host by creating a new site (or using the virtual hosts option). After that you should be able to type in a more real looking host name which makes the Facebook authentication work that much better. Best of luck!
I am starting to use Scopes on a Site using Liferay CE 6.1 GA1. I have one Site, and two scopes within this site: S1 and S2.
I am facing two issues:
When trying to display the Web Content that I added in S1 through the Control Panel, the Web Content Display portlet doesn't display anything. I can select the correct Web Content when selecting scope in portlet configuration as S1, but when I save it, it is simply not displayed on the page. No error message is thrown whatsoever in the console.
When trying to save a Display Page for scoped Web Content (either in S1 or S2), this simply does not work. Once more, no error message is thrown, but the Page Display setting is simply not saved.
Is that normal, a bug, or am I doing something wrong?
Thank you all for your help!
I just tried this in the same Liferay version as yours and it seems to work for mee. Are you sure that you approved the web content? Also, do you have enough permissions to see the content?
This seems to be a bug: http://issues.liferay.com/browse/LPS-28556
SharePoint web site = http://myexample:3500
SharePoint tester (admin on domain, admin on SharePoint site collection) = IAmKyle
Alternate Access Mapping: I left it at the default which is http://myexample:3500 maps to itself, and the zone is "default".
My code was deployed as a farm solution and my .dll is in the GAC. I activated a feature on my site collection (url is above). What the code does is, when the user updates a SharePoint item, my code executes a LINQ query finding "related" items. Then the related items are updated. Here are the errors I get:
On Windows Event Logs:
Error loading and running event receiver [my receiver assembly]. Object reference not set to instance of an object.
On SharePoint ULS event logs:
Same error as I see in Windows Event logs. Also, I was getting errors about "alternate access mapping" not being configured for http://myexample:3500 but I'm not getting them anymore. Don't know why, I haven't changed anything.
On IIS logs
Getting some 401 responses for pages that I should be able to access. But, it only shows the tail end of the page in some cases e.g. "/mysite/mypage" so I'm unsure what the full URL is.
These errors are very confusing, my code 100% works on my test system. What network or sharepoint configurations should I be looking for? I'm assuming my code itself works fine considering that it does work on my test environment. Of course, I have more permissions on test since my username on test is the user who created the farm.
Thanks.
Do you get these errors when trying to activate the feature or when actually making a change to a list item?
Also, have you tried attaching the VS debugger to the process and having a look at what is going on?