I have a sign up custom policy and we get an intermittent "Bad Request" error after the submit button is clicked. I read somewhere that it could be that the request is too long but I am not sure if this is the same error. When page is refreshed it usually resolves and it goes to the redirect uri and processes successfully. Application insights logs don't have anything. How can I know what the specific cause?
console screen shot
There's an open issue here, where B2C doesn't handle an internal error properly if the page is left open for > ~4 hours. Does this match your scenario?
While creating knowledge base in dialog flow from URL, I am getting message "Error". However I am able to see FAQ which are on this URL when opening in browser. For reference please find below screenshot below, If feasible suggest how can I find exact reason for this error as dialog flow don't give any other relevant error for this.
URL which I am configuring knowledge base is :
https://www.owens.edu/faq/early-alert/
enter image description here
The full error message is the following:
"Failed to crawl https://www.owens.edu/faq/early-alert. Please verify that your URL is publicly accessible and is hosted on a site that can be indexed by Google Search."
I have tested the FAQ page you shared and by using the "Developer tools" of Chrome, I was able to see that error message. I suggest you to take a look at the "Supported content" documentation for knowledge bases in Dialogflow. In there, you can see the following statement:
Files from public URLs must have been crawled by the Google search indexer, so that they exist in the search index. You can check this with the Google Search Console. Note that the indexer does not keep your content fresh. You must explicitly update your knowledge document when the source content changes.
Therefore, make sure to meet all the requirements listed there.
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 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,
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