REST API DEVELOPER HASSEN DIESEN EINEN TRICK!! (sarcastic title) / REST API DEVELOPERS HATE THIS ONE WEIRD TRICK!! (sarcastic title)

in #english2 years ago

English version below


Hallo,

hab ich euch mit dem Clickbait. Jedenfalls will ich heute ein wenig ranten, da ich nach einem ausführlichen Tag der Python-Entwicklung (heute war Deadline) einen äußerst lustigen Fehler hatte.

Ich habe in Python eine RESTful API gestrickt (https://www.redhat.com/en/topics/api/what-is-a-rest-api) und so eine API muss man testen. Ein Tool dafür ist Postman (https://www.postman.com/), von welchem es eine Offline-Version gibt, die tatsächlich auch ohne Cloud und Account funktioniert. Geholt hatte ich mir die Snap-Version:

$ snap install postman

Tatsächlich hat diese Version auch gut funktioniert und ich konnte eine Reihe an Testcases einrichten. (Kann hier leider kein Bild von meiner Arbeit zeigen, da noch nicht öffentlich)

Screenshot_2022-01-03_02-11-57.png

Als ich dann (ganz am Schluss) versucht habe, die Collection zu exportieren, kam das böse Erwachen:

Screenshot_2022-01-03_01-07-19.png

Das Programm hat also tatsächlich statt dem Speichern-Dialog mein Kreuzworträtsel vom Frühstück gefunden!

Da ich aber heute früh schon keine Zeit hatte, dieses zu lösen, kam ich hier jetzt unter Zeitdruck auch nicht weiter. Eine schnelle Recherche führte mich zu https://askubuntu.com/questions/1224125/font-characters-displayed-as-squares-in-ubuntu-18-04, was nicht funktionierte, und https://forum.snapcraft.io/t/snaps-show-squares-instead-of-fonts/18073/10, was für Snap kein besonders gutes Bild ergab. Da ich aber ein großer Hackerman bin, habe ich einfach blind in die obere mittige Zeile /tmp/export.json eingegeben und rechts oben auf den Knopf gedrückt, und tada...

Datei gespeichert (und danach noch in Git eingepflegt).

Gute Nacht.


English version


Hello,

got you with the clickbait. Anyway, I want to rant a bit today because after an extensive day of Python development (today was deadline) I had an extremely funny mistake.

I knitted a RESTful API in Python (https://www.redhat.com/en/topics/api/what-is-a-rest-api) and such an API needs to be tested. A tool for this is Postman (https://www.postman.com/), of which there is an offline version that actually works without cloud and account. I got the snap version:

$ snap install postman

In fact, this version worked well and I was able to set up a number of test cases. (Can't show a picture of my work here, because it's not public yet)

Screenshot_2022-01-03_02-11-57.png

When I then (at the very end) tried to export the collection, the rude awakening came:

Screenshot_2022-01-03_01-07-19.png

So the program actually found my crossword puzzle from breakfast instead of the save dialog!

But since I didn't have time to solve it this morning, I didn't get any further here now under time pressure. A quick search led me to https://askubuntu.com/questions/1224125/font-characters-displayed-as-squares-in-ubuntu-18-04, which didn't work, and https://forum.snapcraft.io/t/snaps-show-squares-instead-of-fonts/18073/10, which didn't paint a very good picture for Snap. However, being a big hackerman, I just blindly typed /tmp/export.json into the top center line and hit the button in the upper right, and tada...

File saved (and subsequently checked into git).

Good night.