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

Incorrect casing for builtins.queryActionSet #156

Open
xavierBizoux opened this issue Apr 13, 2023 · 4 comments
Open

Incorrect casing for builtins.queryActionSet #156

xavierBizoux opened this issue Apr 13, 2023 · 4 comments

Comments

@xavierBizoux
Copy link

I'm struggling using the swat package on MacOS.
I'm trying to connect to CAS and I get a 403 error.
I turned on some debugging and got the following trace:

PUT https://gelenv-lts.rext03-0029.race.sas.com/cas-shared-default-http/cas/sessions
User-Agent: python-requests/2.28.2
Accept-Encoding: gzip, deflate
Accept: /
Connection: keep-alive
Content-Type: application/json
Content-Length: 0
Authorization: b'Basic c2J4eGFiOlNBU2xueDMz'

{ "session": "c2cf402c-6fd7-4145-8184-d2f547b1f507" }

POST https://gelenv-lts.rext03-0029.race.sas.com/cas-shared-default-http/cas/sessions/c2cf402c-6fd7-4145-8184-d2f547b1f507/actions/builtins.queryactionset
User-Agent: python-requests/2.28.2
Accept-Encoding: gzip, deflate
Accept: /
Connection: keep-alive
Content-Type: application/json
Content-Length: 73
Authorization: b'Basic c2J4eGFiOlNBU2xueDMz'

{"actionset": "builtins.help", "_messagelevel": "error", "_apptag": "UI"}

{
"error": "HTTP/1.1 403 Forbidden",
"code": "HTTP_403",
"details": null,
"disposition": null
}

I tried the url:
https://gelenv-lts.rext03-0029.race.sas.com/cas-shared-default-http/cas/sessions/c2cf402c-6fd7-4145-8184-d2f547b1f507/actions/builtins.queryactionset
in my browser and it failed.
I then tried to following url:
https://gelenv-lts.rext03-0029.race.sas.com/cas-shared-default-http/cas/sessions/c2cf402c-6fd7-4145-8184-d2f547b1f507/actions/builtins.queryActionSet
And got a correct answer.
I suspect there is an issue with the queryActionSet not using camelCase.
Am I correct?

@bkemper24
Copy link
Contributor

It looks like you are using an older version of the python-swat client, most likely 1.6.1. pip install sometimes does not get the latest release for mac, depending on the mac os version. this is an issue with the wheel file that is currently under investigation.

The latest python-swat release is 1.12.1. Can you please try installing the python-swat client using the python-swat-1.12.1+REST-only-osx-64.tar.gz file from the releases page of this github project to see if that fixes your problem ?

@xavierBizoux
Copy link
Author

xavierBizoux commented Apr 13, 2023 via email

@bkemper24
Copy link
Contributor

If you have anaconda, you could do a conda install:
conda install -c sas-institute swat
That's the only other way I know of.

@bkemper24
Copy link
Contributor

FYI, the latest release of the python-swat client, 1.13.3 , has added additional wheel files for macosx_11_0_arm64, so you might try the pip install again and see if it gets 1.13.3 for you now instead of 1.6.1

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

2 participants