-
Notifications
You must be signed in to change notification settings - Fork 10
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
Octopus API error: The Resource field is required. [] #217
Comments
Hi @mieliespoor I tested the above command using v1.1 of the cli and the most recent version of Octopus Server, without issue. There is a requirement of 2022.3 to be able to use some of functionality in the cli (these are |
We are on 2022.3 build 10847. We are thus on the correct minimum version. My main problem here is that the message returned is completely useless. I tried is on my own machine in various formats and keep getting that error, so something is most definitely broken in the cli. |
@mieliespoor you are correct that the error message is unhelpful. I have raised an issue #221 to specifically address the unhelpful messaging in this scenario. In the meantime, the only workaround I can suggest is to upgrade your server to 2022.3 or later. |
Apologies, I made a typo. We are running 2022.3. |
Are you able to provide me with exact server version number you are running and I will try to recreate your issue? |
All I can see in Octopus is 2022.3 build 10847. Not sure what other version information there is.
|
Any feedback on this? |
Sorry for the slow response. |
@mieliespoor From the additional information provided in the support ticket you raised, it appears that it may be case-sensitivity when matching up the name of the project. This is only the case when the project query has been cached in memory, if the query has to go out to the database, it is dependant on the collation of the database. Can you please try modifying your |
Hi Ben, |
Here is an example of a command (same one @mieliespoor gave) which results in the "Octopus API error: The Resource field is required. []" error being seen with the
Outputted the following:
I can see references to
Here is an example of a command where we ensure the
Which was successful
|
@lhalleyvzc thanks for getting back to me. From the stack trace in the error, I can see that this is caused by an error being returned from the Octopus API. This is still suggesting that one of the resource names in the command (project, channel or space) doesn't match the casing of the resource in the server. |
Hi @benPearce1 - I combed through that command after you mentioned checking
and turns out the --channel "Release" was causing the error. After we switched it to an existing channel it worked. I think once you guys improve that Thanks! |
I'm closing this since upgrading Octopus and the cli seemed to have fixed it for us. No point keeping this open anymore |
For some unknown reason, we are getting the following error back from the cli
Octopus API error: The Resource field is required. []
This is the the exact call we do, with parameter values
Note that the following were set as ENV vars.
OCTOPUS_API_KEY
andOCTOPUS_URL
I have run the above on Windows, but we see the same happening on Linux.
The text was updated successfully, but these errors were encountered: