memesearch
Ошибки БД клиенту

Ошибки БД клиенту

Download Find similar pictures
Text on the meme
Также с клиента можно передавать любые данные, и они сохранятся в БД А стоп - некоторые поля таки обрабатываются и вы посмотрите! Парни, которым не нужен git создали процедуру api_set_user_profile_v5 (ну ок, может именно версионность) Но выплёвывать ошибки БД клиенту это так се.. accept: application/json accept-language: en-US,en;q=0.5 accept-encoding: gzip, deflate, br referer: https://tina...co.com content-type: application/json origin: https://tina...co.com content-length: 295 host: ... connection: keep-alive cookie: ... {"apiVersion":"1.0.1","id":null,"avatar":null,"firstName":null,"lastName":null,"address":null,"dateOfBirth":null,"sex":1} {"apiVersion":"1.0.1","error":{"code":"exception","message":"invalid input syntax for type date: \"\". PL/pgSQL function api_set_user_profile_v5(jsonb) line 273 at IFN'SQL statement \"SELECT api_set_user_profile_v5($1)\"\nPL/pgSQL function api_call(jsonb) line 240 at EXECUTE"},"status":"error"}
What it means

На скриншоте показан твит с насмешкой над API, которое принимает любые данные от клиента, но затем возвращает ему подробную ошибку PostgreSQL из-за пустого значения даты. Шутка в том, что бизнес-логику перенесли в базу данных и даже назвали процедуру с версией, но ошибки внутренней реализации всё равно раскрываются клиенту. EN: The screenshot shows a tweet mocking an API that accepts arbitrary data from the client but then returns a detailed PostgreSQL error because of an empty date value. The joke is that the business logic was moved into the database and the procedure was even given a versioned name, yet internal implementation errors are still exposed to the client.

Objects
Tags
Source
Type
image
Size
585×478 · 62.6 KiB
Mood
саркастичный, абсурдный
Language
ru
Added