-
Notifications
You must be signed in to change notification settings - Fork 3
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
TypeError: Cannot read properties of undefined (reading 'internal') #23
Comments
Hi @yamashin55, the cli was for a corner case and I wasn't sure if it was being used or not so I haven't touched it in a while. Can you try to explore that ucs in the vscode-f5 extension? |
Below is the log executed from VS Code with "vscode -f5 extension". 1030 [2022-02-02T05:04:34.001Z] [INFO]: f5.cfgExplore, extracting apps |
Thanks. That helps. It seems it did not pick up any data-groups. I implemented a fix, but this may be a bigger problem with newer v16.1 code. Please try with the latest 0.9.3 release and let me know the outcome. |
A similar error was output.
-- snip .. -- Supplement : VSCode's "CONFIG EXPLOTER" looks like it's confirmed as expected. |
The v15.1.4 UCS file did not cause any errors. |
Thanks for the feedback. I'll dig into testing this package with v16.1+. |
This should be fixed with the latest release. Please confirm |
I have uploaded a new version of the "F5 Extension". vscode-f5/3.8.2 3 [2022-07-25T01:22:10.759Z] [INFO]: ------ Environment Variables ------
|
@yamashin55, this may be more related to the last features added in the vscode-f5 extension. I've released another tweek but i'm not seeing this issue in my lab with a handful of ucs/conf/qkviews. If you are still having problems, we may need to get together so you can show me what is happening. Is the cli working as expected? |
@DumpySquare, I've upgraded the version of "vscode-f5 extension" to v3.8.3. I've tested with multiple versions. v12.1, v15.1, v16.1. As a result, all the errors have been resolved! Very great! I was impressed. Thank you for your help! |
Awesome! thanks! |
When I run "corkscrew", it fails with the following error:
I couldn't find a fix. Do you have any idea?
root@ubuntu:/home/ubuntu/f5-corkscrew# corkscrew explode bigip_v16.1.2.1.ucs --no_command_logs > demo.json
/usr/local/lib/node_modules/f5-corkscrew/dist/digConfigs.js:297
const dataGroups = Object.keys(configObject.ltm['data-group'].internal);
TypeError: Cannot read properties of undefined (reading 'internal')
at /usr/local/lib/node_modules/f5-corkscrew/dist/digConfigs.js:297:79
at Generator.next ()
at /usr/local/lib/node_modules/f5-corkscrew/dist/digConfigs.js:16:71
at new Promise ()
at __awaiter (/usr/local/lib/node_modules/f5-corkscrew/dist/digConfigs.js:12:12)
at /usr/local/lib/node_modules/f5-corkscrew/dist/digConfigs.js:262:43
at Array.forEach ()
at /usr/local/lib/node_modules/f5-corkscrew/dist/digConfigs.js:262:25
at Generator.next ()
at /usr/local/lib/node_modules/f5-corkscrew/dist/digConfigs.js:16:71
Node.js v17.4.0
root@ubuntu:/home/ubuntu/f5-corkscrew# node --version && npm --version
v17.4.0
8.3.1
root@ubuntu:/home/ubuntu/f5-corkscrew# corkscrew --version
0.9.2
The text was updated successfully, but these errors were encountered: