Question: How to solve the Notification error in t...
# announcements
v
Question: How to solve the Notification error in the Airbyte API configuration? While creating workspace using POST /v1/workspaces/create in Airbyte API Documentation with example as per the schema given below, I am getting Response Status: 422. Please find the reference : https://airbyte-public-api-docs.s3.us-east-2.amazonaws.com/rapidoc-api-docs.html#servers The example that I have used to generate POST request: { "email": "user@example.com", "anonymousDataCollection": false, "name": "string", "news": false, "securityUpdates": false, "notifications": [ { "notificationType": "slack", "slackConfiguration": { "webhook": "string" } } ] } The response that I have got:
Copy code
{
  "message": "Invalid JSON",
  "details": "Unrecognized field \"notifications\" (class io.airbyte.api.model.WorkspaceCreate), not marked as ignorable"
}
1
d
Hi, how are you generating the request?
v
Running docker in the background and using REST APIs for the following commands in the files: https://raw.githubusercontent.com/airbytehq/airbyte/master/airbyte-api/src/main/openapi/config.yaml Attaching screenshot:
👍 1
d
I'm doing the same via rapidoc and this is working for me
is the test request being sent through rapidoc? if not, I'm guessing some json formatting is messed up
what airbyte version are you running?
v
Metadata: - key: "airbyte_version" value: "0.19.0-alpha"
d
that's the same one I'm on
does the same error show if you click
try
in rapidoc without changing anything?
v
Yes
It works when I removed Notification key like below: { "email": "user@example.com", "anonymousDataCollection": false, "name": "string", "news": false, "securityUpdates": false }
👍 1
d
strange
1. can you pull and test this on the current master? 2. can you refresh rapidoc to make sure nothing was introduced into the json example?
v
1. Pulled all new changes 2. Refresh does not work giving the following message on chrome: Cannot reach server. The server may still be starting up. Same message on http://localhost:8000/ Waiting for long and showing same message
Can you provide your commit ID? I want to try to run on that.
d
I'm on
82c8768c7cb2bfcd4c0cfccefc8b7d0dab63b5911
can I confirm your server is starting up correctly?
what does
docker ps
show?
v
Just doing it again. In the meantime can you confirm are you in master? I am not able to git checkout 82c8768c7cb2bfcd4c0cfccefc8b7d0dab63b5911 on master.
Screenshot.png
d
Screen Shot 2021-04-13 at 4.15.29 PM.png
cool, your airbyte instance seems to be correctly up
is the webapp working?
v
No. Wait, I am trying on your commit.
d
I see. Is this your first time running Airbyte?
v
Yes.
d
Are you free now? Want to jump on a call to debug this?
no worries if you aren't available
v
sure, To join the video meeting, click this link: https://meet.google.com/gmp-tiry-vdh Otherwise, to join by phone, dial +1 347-554-7221 and enter this PIN: 177 507 966# To view more phone numbers, click this link: https://tel.meet/gmp-tiry-vdh?hs=5
d
update: this was solved once we got to master. there might be a bug at previous version. we haven't seen anything so we are going to keep an eye out now. Vaidhav will let us know if he runs into this again
👍 1
🙌 1
v
Thank you @Davin Chia (Airbyte) for solving this issue. You can see the issue in the previous commit: 6d95e3b619ede786fae0f3c6a83726db19288926 This issue has been solved in the current master. And everything starts working smoothly for me after restarting my computer and starting from scratch. I guess the problem was solved when running the following command given by @Davin Chia (Airbyte):
docker-compose down -v