Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created on
10-20-2023
11:39 AM
- last edited on
04-20-2026
11:47 PM
by
GrazittiAPI
Hi,
I have been using the cdswctl tool for a while for creating sessions that can be accessed by VS Code from Windows.
Today i tried to create a session from a Mac using the same command and it throws an error complaining that the API key is not valid. I have checked the key and same key works fine from Windows.
The command i am using is :
./cdswctl login -n USERNAME -u http://cdsw.mydomain.xxxx/ -y APIKEY
Can anyone offer any advice?
Thanks
Created 11-02-2023 04:17 AM
So - it is related to proxy/dns settings when on RAS.
Adding a lookup to etc/hosts from the IP address to the Host name has fixed my issue:
e.g.
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
192.99.90.1 cdsw.XXXXXX.xxxx
Created 11-02-2023 04:17 AM
So - it is related to proxy/dns settings when on RAS.
Adding a lookup to etc/hosts from the IP address to the Host name has fixed my issue:
e.g.
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
192.99.90.1 cdsw.XXXXXX.xxxx
Created 11-02-2023 08:37 AM
Hmm, that makes sense I suppose. That was my next guess 😉 Glad you figured it out, and thanks for posting the answer here, I appreciate it!