-
-
Notifications
You must be signed in to change notification settings - Fork 348
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
Wrong/Undescriptive error message from NetKAN on invalid $kref #1621
Comments
Given that it doesn't work as a spacedock $kref, either, we can't be sure what the error is. |
Whoops. Here's a better test case: http://pastebin.com/raw/8WweaaJX I deleted the mod I was using to test this there. It's now at ID 307, and the updated (correct) netkan has the same issue |
I think the best answer would be for us to remove the spaceport transformer. That should make it throw a more meaningful error. |
Ok, so that's the error you get if you put any random incorrect string in that place. @techman83 , any chance we could get a test for known #krefs so we can catch this with a meaningful error message? |
@politas do you mean during inflation or jenkins? I'm guessing the end point doesn't respond with JSON when you try and request a #kfref that doesn't exist causing the JSON lib to barf out. If it's in the netkan code it probably could check for a valid #kref, but my C# is pretty limited. |
I was thinking it should be part of netkan's pre-validation, but if Jenkins could check for it and give an error, that would be useful, too. JSON deserialisation errors are staggeringly vague. @plague006 tells me that @dbent is the person to ping for Netkan changes, anyway, so sorry to pull you into the discussion. |
Sure, all error reporting and logging is due for an overhaul in NetKAN. It'll happen Eventually™. |
Mainly my confusion stemmed from normally thinking deserialization error == All things considered, its a very low-priority issue: if it's gonna require
|
Yup, this caught me too. I was running As best I can tell (by running with An easy way to catch this would be either modify TL;DR: We should have a way of spotting when we've reached a point in the pipeline when we expect the $kref to have been inflated, but haven't done so. |
This is a duplicate of #374. |
I'm not sure if this is where I should be reporting an issue with NetKAN, but it seemed most logical considering it's source is in this repo now.
CKAN Version: v1.16.0-0-g7206ce5 (beta)
NetKan Version: v1.16.0-63-g254ef2b (beta)
Operating System: Windows 7 Home Premium
The issue you are experiencing: Incorrect error message on invalid $kref entry in netkan file
How to recreate this issue: Paste this into a .netkan file, run ./netkan --version , note that since the file contains a invalid $kref (spaceport instead of spacedock) it will fail. However it confused me at least that this was reported as
665 [1] FATAL CKAN.NetKAN.Program (null) - JSON deserialization error
instead of a invalid kref.CKAN error codes (if applicable):
665 [1] FATAL CKAN.NetKAN.Program (null) - JSON deserialization error
Perhaps a more useful error message would be good for someone as prone to typos as me :P
The text was updated successfully, but these errors were encountered: