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

Import not grabbing scenario number, getting "undefined" import content. #45

Open
tsacks opened this issue Mar 15, 2017 · 1 comment
Open

Comments

@tsacks
Copy link

tsacks commented Mar 15, 2017

Here's an example of the issue, using the following JSON object for a single Scenario:

[
  {
    "date": "2012-12-02T08:00:00Z",
    "EventCode": "10076",
    "EventName": "Pathfinder Society at the Rifleman",
    "Session": "60",
    "GM": "Netopalis",
    "Character": "Dukane",
    "Faction": "Shadow Lodge",
    "Prestige": "",
    "campaign": "RPG",
    "role": "Player",
    "PFSNumber": "57622-1",
    "season": "4",
    "senario": "07",
    "FullScenarioNumber": "4-07",
    "ScenarioName": "#4-07: Severing Ties (RPG)"
  }
]

This is the following result:
2017-03-15 14_39_50-pfs sessiontracker

2017-03-15 14_41_21-pfs sessiontracker

This is a valid JSON object, with no null values. The input log confirms that it is valid. It attempts to detect a scenario, but it appears to fall apart at the following location in the log:

Found a potential content
#4-07: Severing Ties (RPG)
Determining type of content...

Ignoring any additional values
@tsacks
Copy link
Author

tsacks commented Mar 15, 2017

Doing a bit more investigation, as this appears to be an issue with the client side JS importing.

Ran into an error in the JS console, that appears to be referencing this section of import.js:

vm.$timeout(function() {
	// Try to resolve stuff
	var count = 0;
	vm.$interval(function(count) {
		if(!vm.data[count].ignore) {
			vm.resolveContent(vm.data[count]).then(function(result) {
				vm.resolved[count].tracker = result;
				vm.progressbar.progress++;
			});
		} else {
			vm.resolved[count].tracker = 'IGNORED';
		}
	},500, vm.data.length);
}, 1000);

Specifically, the line if(!vm.data[count].ignore) {

The error states cannot read property 'ignore' of undefined, so at some point, vm.data[count] is becoming undefined.

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

1 participant