-
Notifications
You must be signed in to change notification settings - Fork 4
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
Get-EdnsZoneTransferStatus 417 issue #3
Comments
Hi @JG237 , Please describe your use case in more detail. |
I can connect to Akamai and run any of the get-Edns* command and I get results fine What is the @testParams you are using Here is a cutdown version of the script I am running. |
Hi @JG237,
Can you think of any reason how such header may be added to your request? |
For me it is very strange as it only occurs for the first 5-10 minutes of the session the rest of the day it is 100% fine. PSVersion 5.1.20348.2400 |
Hi @JG237 , I think the problem is due to PS version 5.xxx is sending "Expect: 100-continue" by default on POST request. Could you try run your PS1 script on latest Powershell ? cheeeers! |
Invoke-AkamaiRestMethod only removes Expect:100-Continue if there is a request body, rather than purely based on the method. So it might be that somehow there is no body in your use case. I have seen weirdness where foreach loops have executed even though the input collection is null, but have never gotten to the bottom of it. We will test with an empty input body to see if this triggers the issue, but @JG237 can you add some reporting to your script to print |
Testing on PS 7.4+ is always a good idea, but even on PS 5.1 the Akamai module removes 100-continue |
Hi @JG237, We've released version 2.1, which includes a change to remove the scoping on the 100-continue removal. Can you upgrade and test on 2.1 and let me know how that goes? Thanks |
My script picked up the new version and updated the modules to 2.1 last week, Thank you for the update. |
Hi,
When I first connect to Akamai I can not run the Get-EdnsZoneTransferStatus for about 10 minutes
every other command works
status 417
Expect 100-contiune header is not supported
The text was updated successfully, but these errors were encountered: