You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
No deserialization found for type RuntimeSettings #432
// This is the starting point of your Serverpod server. In most cases, you will
// only need to make additions to this file if you add future calls, are
// configuring Relic (Serverpod's web-server), or need custom setup work.
void run(List args) async {
// Initialize Serverpod and connect it with your generated code.
final pod = Serverpod(
args,
Protocol(),
Endpoints(),
);
// If you are using any future calls, they need to be registered here.
// pod.registerFutureCall(ExampleFutureCall(), 'exampleFutureCall');
// Setup a default page at the web root.
pod.webServer.addRoute(RouteRoot(), '/');
// Serve all files in the /static directory.
pod.webServer
.addRoute(RouteStaticDirectory(serverDirectory: 'static'), '/static/*');
Activity
yahu1031 commentedon Dec 6, 2022
Similar issue to #426
yahu1031 commentedon Dec 6, 2022
Can you explain to us what function/method you called?
yahu1031 commentedon Dec 6, 2022
@Shubhamdsingh Please edit the title as
No deserialization found for type `RuntimeSettings`
[-]getting this error when running dart bin/main.dart [/-][+]No deserialization found for type `RuntimeSettings`[/+]Shubhamdsingh commentedon Dec 6, 2022
I am running my server project and its showing the above error
COMMAND
dart bin/main.dart
@yahu1031
yahu1031 commentedon Dec 6, 2022
@Shubhamdsingh What is in here
serverpod_demo_server/server.dartline 30Shubhamdsingh commentedon Dec 6, 2022
import 'package:serverpod/serverpod.dart';
import 'package:serverpod_demo_server/src/web/routes/root.dart';
import 'src/generated/protocol.dart';
import 'src/generated/endpoints.dart';
// This is the starting point of your Serverpod server. In most cases, you will
// only need to make additions to this file if you add future calls, are
// configuring Relic (Serverpod's web-server), or need custom setup work.
void run(List args) async {
// Initialize Serverpod and connect it with your generated code.
final pod = Serverpod(
args,
Protocol(),
Endpoints(),
);
// If you are using any future calls, they need to be registered here.
// pod.registerFutureCall(ExampleFutureCall(), 'exampleFutureCall');
// Setup a default page at the web root.
pod.webServer.addRoute(RouteRoot(), '/');
// Serve all files in the /static directory.
pod.webServer
.addRoute(RouteStaticDirectory(serverDirectory: 'static'), '/static/*');
// Start the server.
await pod.start();
}
@yahu1031 @yahu1031 @II11II this the code of 'serverpod_demo_server/server.dart' file
Shubhamdsingh commentedon Dec 6, 2022
@yahu1031 can u help me in this its urgent
yahu1031 commentedon Dec 6, 2022
Yes, I can. Can you please ping me on twitter
Shubhamdsingh commentedon Dec 6, 2022
@yahu1031 can you tell me solution here only ?
yahu1031 commentedon Dec 6, 2022
Yes I can, tell us all how you have started the server. @Shubhamdsingh
Shubhamdsingh commentedon Dec 6, 2022
@yahu1031
yahu1031 commentedon Dec 6, 2022
okie... sounds smooth. can you please check if the DB has all the tables?
Shubhamdsingh commentedon Dec 6, 2022
@yahu1031 yes DB has all tables
yahu1031 commentedon Dec 6, 2022
Okie can you restart the system and try again?
Shubhamdsingh commentedon Dec 6, 2022
@yahu1031 getting same error
suhaelfarouk commentedon Dec 6, 2022
just clear the serverpod_runtime_settings table and restart the server and you are good to go.
yahu1031 commentedon Dec 6, 2022
this may work. Try it.
Shubhamdsingh commentedon Dec 7, 2022
Thanks it works @yahu1031 @suhaelfarouk