supabase-kt: [Bug]: Serializer for class 'Config' is not found

General Info

  • I installed the latest version of Supabase-Kt
  • I checked for similar bug report

What happened? (include your code)

Attempting to use email signup in a kotlin/js module with the following code:

		val result = supabaseClient.gotrue.signUpWith(Email) {
			this.email = username
			this.password = password
		}

		console.log(result)

which i expect to trigger an email signup on supabase. However it fails in the browser.

Platform(s)

Web

Relevant log output

Object { message: "Serializer for class 'Config' is not found.\nMark the class as @Serializable or provide the serializer explicitly.\nOn Kotlin/JS explicitly declared serializer should be used for interfaces and enums without @Serializable annotation", cause: undefined, name: "si", stack: "Bl@http://127.0.0.1:8080/static/frontend.js:75:490599\nai@http://127.0.0.1:8080/static/frontend.js:75:592296\n3645/i</_i/i<@http://127.0.0.1:8080/static/frontend.js:75:594117\n_i@http://127.0.0.1:8080/static/frontend.js:75:594360\n158/r/mr.prototype.j4t@http://127.0.0.1:8080/static/frontend.js:75:1270651\n158/r/mr.prototype.z4s@http://127.0.0.1:8080/static/frontend.js:75:1270752\n158/r/lr.prototype.ui@http://127.0.0.1:8080/static/frontend.js:75:1267732\n158/r/mr.prototype.u4n@http://127.0.0.1:8080/static/frontend.js:75:1285661\n158/r/Sn.prototype.b4i@http://127.0.0.1:8080/static/frontend.js:75:1260018\n158/r/Sn.prototype.c4i@http://127.0.0.1:8080/static/frontend.js:75:1284963\n1060/r/$r.prototype.ui@http://127.0.0.1:8080/static/frontend.js:75:1203331\n1060/r/gr.prototype.y4u@http://127.0.0.1:8080/static/frontend.js:75:1203714\n1060/r/yi.prototype.ui@http://127.0.0.1:8080/static/frontend.js:75:1213873\n1060/r/yi.prototype.h1i@http://127.0.0.1:8080/static/frontend.js:75:1213596\ni@http://127.0.0.1:8080/static/frontend.js:75:1187330\n8744/n/wp.prototype.ui@http://127.0.0.1:8080/static/frontend.js:75:563546\n8744/n/mp.prototype.ti@http://127.0.0.1:8080/static/frontend.js:75:562805\n8744/n/mp.prototype.c4@http://127.0.0.1:8080/static/frontend.js:75:563063\n7646/r/oa.prototype.tp@http://127.0.0.1:8080/static/frontend.js:75:820984\n7646/r/Wa.prototype.f19@http://127.0.0.1:8080/static/frontend.js:75:825087\n7646/r/Ga.prototype.g19/<@http://127.0.0.1:8080/static/frontend.js:75:825853\npromise callback*7646/r/Ga.prototype.g19@http://127.0.0.1:8080/static/frontend.js:75:825819\n7646/r/Wa.prototype.i19@http://127.0.0.1:8080/static/frontend.js:75:824967\n7646/r/Ka.prototype.uq@http://127.0.0.1:8080/static/frontend.js:75:825556\n7646/r/za.prototype.uq@http://127.0.0.1:8080/static/frontend.js:75:823335\nta@http://127.0.0.1:8080/static/frontend.js:75:760901\n7646/r/ma/<@http://127.0.0.1:8080/static/frontend.js:75:762646\nma@http://127.0.0.1:8080/static/frontend.js:75:762736\n7646/r/Gn.prototype.bl@http://127.0.0.1:8080/static/frontend.js:75:783241\n7646/r/He.prototype.yk@http://127.0.0.1:8080/static/frontend.js:75:772459\n7646/r/t.$_$.m/<@http://127.0.0.1:8080/static/frontend.js:75:831141\n7646/r/t.$_$.m@http://127.0.0.1:8080/static/frontend.js:75:831153\n1060/r/di/</</n.onClick@http://127.0.0.1:8080/static/frontend.js:75:1187256\nPt@http://127.0.0.1:8080/static/frontend.js:75:281161\nFt@http://127.0.0.1:8080/static/frontend.js:75:281315\n3936/Mr/<@http://127.0.0.1:8080/static/frontend.js:75:301175\nMr@http://127.0.0.1:8080/static/frontend.js:75:301269\nzr@http://127.0.0.1:8080/static/frontend.js:75:301685\n3936/Zr/<@http://127.0.0.1:8080/static/frontend.js:75:307113\nll@http://127.0.0.1:8080/static/frontend.js:75:370407\nIt@http://127.0.0.1:8080/static/frontend.js:75:280294\nZr@http://127.0.0.1:8080/static/frontend.js:75:302977\nVe@http://127.0.0.1:8080/static/frontend.js:75:287394\nBe@http://127.0.0.1:8080/static/frontend.js:75:287176\nEventListener.handleEvent*Hr@http://127.0.0.1:8080/static/frontend.js:75:302482\nLr@http://127.0.0.1:8080/static/frontend.js:75:301881\n3936/Ur/<@http://127.0.0.1:8080/static/frontend.js:75:302047\nUr@http://127.0.0.1:8080/static/frontend.js:75:301991\n3936/e.createRoot@http://127.0.0.1:8080/static/frontend.js:75:391896\n1060/r/<@http://127.0.0.1:8080/static/frontend.js:75:1232697\nr@http://127.0.0.1:8080/static/frontend.js:75:1232843\n1060@http://127.0.0.1:8080/static/frontend.js:75:1232852\n__webpack_require__@http://127.0.0.1:8080/static/frontend.js:75:1295711\n@http://127.0.0.1:8080/static/frontend.js:75:1296908\n@http://127.0.0.1:8080/static/frontend.js:75:1296943\n@http://127.0.0.1:8080/static/frontend.js:2:193\n@http://127.0.0.1:8080/static/frontend.js:2:197\n" }
CoroutineExceptionHandlerImpl.kt:11:4

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 23

Most upvoted comments

Wow, well thats the easiest way to fix something! Can confirm that this is no longer an issue, thank you for debugging.

Okay I just changed the Kotlin version in the plugins to 1.8.0 and everything works now

Yeah, I wish I could quickly make a repro project. I’ll see what I can do this weekend.

On Wed, Jan 4, 2023, at 7:17 PM, TheRealJan wrote:

Tthe only workaround which might work is to specify the Serializer in these methods manually, but it still would be good to know what’s causing this. Maybe it’s really a gradle/compilation problem, but can’t reproduce this error

— Reply to this email directly, view it on GitHub https://github.com/supabase-community/supabase-kt/issues/42#issuecomment-1371572405, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALCURN3XIXHES24W34SVQ3WQYHKJANCNFSM6AAAAAATOKJ3HE. You are receiving this because you authored the thread.Message ID: @.***>