Page MenuHomePhabricator

Local instance cannot access EventLogging schemas
Closed, ResolvedPublic


Install EventLogging with a schema defined on and trigger an event and you'll see an error "Missing or empty schema"

The http request to meta gets redirected from http to https as it fires a request to:

The solution is to add redirects.

Event Timeline

Jdlrobson raised the priority of this task from to Needs Triage.
Jdlrobson updated the task description. (Show Details)
Jdlrobson moved this task to Backlog on the Analytics-EventLogging board.
Jdlrobson added subscribers: Jdlrobson, ori.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptAug 18 2015, 5:06 PM

Change 232297 had a related patch set uploaded (by Jdlrobson):
Allow redirects for EventLogging schemas

What is $wgEventLoggingSchemaApiUri set to? Ca you just set HTTPS there?

$wgEventLoggingSchemaApiUri defaults to http. The default could of course be changed as an alternative solution but it should at least provide a better error message in this case (currently sends an empty schema).

		if ( !$content ) {
			wfDebugLog( 'EventLogging', "Request to $uri failed." );

/Better message to frontend developer/. Sending an empty schema doesn't make it clear where the problem lies or that there is even a problem.

It sounds like we should at least change the default given that we know it will never work.

Change 232450 had a related patch set uploaded (by Legoktm):
Update a bunch of links to use HTTPS instead

Jdforrester-WMF closed this task as Resolved.Aug 22 2015, 10:26 PM
Jdforrester-WMF assigned this task to Legoktm.
Jdforrester-WMF set Security to None.

Change 232450 merged by jenkins-bot:
Update a bunch of links to use HTTPS instead

Change 232297 abandoned by Jdlrobson:
Allow redirects for EventLogging schemas

Since the bug got closed I guess no one cares if we break things silently.