Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webjob thrown exception for csp. Unable to populate database #55

Open
yakshamash opened this issue May 23, 2019 · 1 comment
Open

Webjob thrown exception for csp. Unable to populate database #55

yakshamash opened this issue May 23, 2019 · 1 comment

Comments

@yakshamash
Copy link

This is the output of the BillingWebJob.exe
It is not populating the database with any information
Please help
[05/23/2019 09:00:02 > fca8fa: INFO]
[05/23/2019 09:00:02 > fca8fa: INFO] Adding audit information in AuditData table..
[05/23/2019 09:00:02 > fca8fa: INFO]
[05/23/2019 09:00:02 > fca8fa: INFO] Job started for fetching billing data at 05/23/2019 09:00:02
[05/23/2019 09:00:02 > fca8fa: INFO] Starting job processing for Customer Type csp
[05/23/2019 09:00:02 > fca8fa: INFO] Starting CSP Routine. Current Usage, Historic Usage and Historic Billing data will be updated..
[05/23/2019 09:00:02 > fca8fa: INFO]
[05/23/2019 09:00:02 > fca8fa: INFO] Fetching records for Current Month's Usage from the API. This may take a while. If this operation is timimg out, consider increasing the TimeOut limit in Configuration file.
[05/23/2019 09:00:02 > fca8fa: INFO]
[05/23/2019 09:00:02 > fca8fa: INFO] Error encountered:
[05/23/2019 09:00:02 > fca8fa: INFO] One or more errors occurred.
[05/23/2019 09:00:02 > fca8fa: INFO] InnerException :
[05/23/2019 09:00:02 > fca8fa: INFO] Operation returned an invalid status code 'Unauthorized'
[05/23/2019 09:00:02 > fca8fa: INFO] StackTrace :
[05/23/2019 09:00:02 > fca8fa: INFO] at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
[05/23/2019 09:00:02 > fca8fa: INFO] at System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification) [05/23/2019 09:00:02 > fca8fa: INFO] at System.Threading.Tasks.Task1.get_Result()
[05/23/2019 09:00:02 > fca8fa: INFO] at BillingWebJob.Helpers.CspDataHelper.StartCspRoutine(Int32& status, Int32& totalRecordsCount, String& blobStorageUri) in C:\Users\USERNAME\Desktop\peek-masterog\peek-master\AzureBillingAnalytics\BillingWebJob\Helpers\CspDataHelper.cs:line 534
[05/23/2019 09:00:02 > fca8fa: INFO] at BillingWebJob.Program.CronJob(TimerInfo timer) in C:\Users\USERNAME\Desktop\peek-masterog\peek-master\AzureBillingAnalytics\BillingWebJob\Program.cs:line 122
[05/23/2019 09:00:02 > fca8fa: INFO]
[05/23/2019 09:00:02 > fca8fa: INFO] Adding audit information in AuditData table..
[05/23/2019 09:00:02 > fca8fa: INFO]
[05/23/2019 09:00:02 > fca8fa: INFO]
[05/23/2019 09:00:02 > fca8fa: INFO] Operation complete. Exiting this run.
[05/23/2019 09:00:02 > fca8fa: INFO]
[05/23/2019 09:00:02 > fca8fa: INFO] Executed 'Program.CronJob' (Succeeded, Id=ad8b7ec0-a4be-4ddd-a652-0370be6acba9)

@aldialynas
Copy link

Did you find a solution to this? I am getting the same error, but status code is "Forbidden". Would love some help on that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants