Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.

Fix panic when there's no response #12

Merged
merged 1 commit into from
Mar 21, 2024
Merged

Conversation

Alva8756
Copy link
Contributor

When response is nil, response.StatusCode will panic.

@Alva8756 Alva8756 merged commit 8e0ce70 into vc/query-api Mar 21, 2024
4 checks passed
@Alva8756 Alva8756 deleted the fix_empty_response branch March 21, 2024 05:52
DoctorVin added a commit that referenced this pull request May 1, 2024
* add README

* add a client API to fetch server components

* add inventory api placeholder functions

Add in API endpoints and the beginning of handler functions for
converting incoming common.Device objects into FleetDB server records.

* Initialize the client library (#6)

* initialize the client library

* refactor minor

* internal fleetdb outline (#9)

* Move types ownership to alloy (#11)

* fix panic when there's no response (#12)

* Convert Alloy Data to Rivets.Server (#16)

* type converter

* typo

* Forward Inventory to FleetDB (#19)

* forward inventory to fleetdb

* cleanup code

* rebase (#20)

* use bmc-toolbox component types (#21)

* update dependencies

---------

Co-authored-by: Alva Zhang <140438385+Alva8756@users.noreply.github.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant