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

Inara plugin: Incorrect format of opponentName parameter or it is completely missing. #1732

Closed
chennin opened this issue Nov 30, 2022 · 5 comments
Labels
bug unconfirmed An unconfirmed bug
Milestone

Comments

@chennin
Copy link
Contributor

chennin commented Nov 30, 2022

Please check the Known Issues in case this has already been reported.

Please also check if the issue is covered in our Troubleshooting Guide. It might be something with a known work around, or where a third party (such as EDSM) is causing logging that is harmless.

Please complete the following information:

Describe the bug

Interdiction by a Thargoid throws a WARNING

2022-11-30 18:15:48.310 UTC - WARNING - 13876:27056:27056 plugins.inara.send_data:1638: Inara	200 Incorrect format of opponentName parameter or it is completely missing.
2022-11-30 18:15:48.310 UTC - DEBUG - 13876:27056:27056 plugins.inara.send_data:1639: JSON data:
{"eventName": "addCommanderCombatInterdicted", "eventTimestamp": "2022-11-30T18:15:26Z", "eventData": {"starsystemName": "Matshiru", "isPlayer": false, "isSubmit": true, "opponentName": ""}}

Corresponding journal entry:

{ "timestamp":"2022-11-30T18:15:26Z", "event":"Interdicted", "Submitted":true, "IsPlayer":false, "Faction":"" }

Journal.2022-11-30T111811.01.log

Ultimately sounds like a game journal bug to me, but you might want to handle that and silence the warning?

@chennin chennin added bug unconfirmed An unconfirmed bug labels Nov 30, 2022
@Athanasius
Copy link
Contributor

Technically I think we're in compliance with the Inara API documentation for this.

So, over to @clonedArtie to comment as to if he wants to update the documentation to "only send non-empty strings", and just not send the event at all if we can't get a value for opponentName, or if he wants to start accepting that.

@Athanasius Athanasius added this to the 5.6.1 milestone Nov 30, 2022
@Athanasius
Copy link
Contributor

Artie has informed me that for required properties in Inara API messages "" should be treated as "not set"/"not available" and probably mean just not sending the message.

So I'll adjust EDMC code, for the 5.6.1 bugfix release coming soon, to add a check for that.

@Athanasius
Copy link
Contributor

@chennin I've not played to know. Was that caused by an "in supercruise, not jumping" Thargoid interdiction? If so, was it an inevitable interdiction, or do you know for sure these can be escaped (i.e. win the mini-game) ?

Specifically I'm wondering if there can be an EscapeInterdiction journal event without an Interdiction property, or where it is an empty string.

Athanasius added a commit that referenced this issue Dec 1, 2022
Addresses #1732 specifically.

At some point #1433 needs fully addressing (review all Inara API code for
compliance with docs).
@chennin
Copy link
Contributor Author

chennin commented Dec 1, 2022

It's supercruise, yes. The interdiction is very hard and I have not seen anyone win it yet, but I do not know if it is impossible.

@Athanasius
Copy link
Contributor

OK, thanks for the info. I've implemented a paranoia check for that anyway.

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

No branches or pull requests

2 participants