Skip to content

If there was an error at inserting QSO via API, return 400 #1407

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

Merged
merged 2 commits into from
Dec 31, 2024

Conversation

int2001
Copy link
Contributor

@int2001 int2001 commented Dec 29, 2024

Reproduce:

insert a QSO with a different station_callsign than at station_profile. This one returns (in latest master/dev) a 201 (insert) but with "adif_error"-count > 0. And QSO wasn't inserted!!

With this PR a 400 would be returned and the messages-object will contain further information.

Part of resolving wavelog/WaveLogGate#26

Testing: Try to log a QSO with the API as described here: https://github.com/wavelog/wavelog/wiki/API#apiqso
Vary the station_callsign within the payload

@int2001 int2001 self-assigned this Dec 30, 2024
@int2001 int2001 requested a review from HB9HIL December 31, 2024 06:09
@int2001 int2001 added bug Something isn't working API stuff which affects the Wavelog API labels Dec 31, 2024
@HB9HIL
Copy link
Contributor

HB9HIL commented Dec 31, 2024

will check later today

Copy link
Contributor

@phl0 phl0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea. Works fine on my end.

@int2001 int2001 merged commit 017643f into wavelog:dev Dec 31, 2024
@int2001 int2001 deleted the api_error branch February 5, 2025 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API stuff which affects the Wavelog API bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy