Giter Site home page Giter Site logo

Comments (3)

jonataslaw avatar jonataslaw commented on August 23, 2024
 public: Public('web'), // it is a duplicate
    getPages: [
      GetPage(name: '/', page: () => Home()), // this
    ],

Only remove getPages:

import 'package:get_server/get_server.dart';

void main() {
  runApp(GetServer(
    public: Public('web'), // it will track your index.html on web folder file to '/'
  ));
}

from get_server.

diickens avatar diickens commented on August 23, 2024

Thanks for your answer. Tried your code but still get the same error.

from get_server.

bineanzhou avatar bineanzhou commented on August 23, 2024

[GETX] Instance "GetServerController" has been created
[GETX] Instance "String?" has been created with tag "jwtKey"
[GETX] Server started on: 0.0.0.0:8080
[GETX] Instance "GetServerController" has been initialized
Error: Unsupported operation: ServerSocket.bind
at Object.throw_ [as throw] (http://localhost:57703/dart_sdk.js:5067:11)
at Function._bind (http://localhost:57703/dart_sdk.js:60033:17)
at Function.bind (http://localhost:57703/dart_sdk.js:60025:32)
at Function.bind (http://localhost:57703/dart_sdk.js:199714:30)
at Function.bind (http://localhost:57703/dart_sdk.js:193049:32)
at server.GetServerController.new.[_getHttpServer] (http://localhost:57703/packages/get_server/src/widgets/pageable.dart.lib.js:1708:33)
at server.GetServerController.new.startServer (http://localhost:57703/packages/get_server/src/widgets/pageable.dart.lib.js:1641:52)
at startServer.next ()
at runBody (http://localhost:57703/dart_sdk.js:40590:34)
at Object._async [as async] (http://localhost:57703/dart_sdk.js:40621:7)
at server.GetServerController.new.startServer (http://localhost:57703/packages/get_server/src/widgets/pageable.dart.lib.js:1636:20)
at server.GetServerController.new.start (http://localhost:57703/packages/get_server/src/widgets/pageable.dart.lib.js:1631:20)
at start.next ()
at runBody (http://localhost:57703/dart_sdk.js:40590:34)
at Object._async [as async] (http://localhost:57703/dart_sdk.js:40621:7)
at server.GetServerController.new.start (http://localhost:57703/packages/get_server/src/widgets/pageable.dart.lib.js:1619:20)
at server.GetServerController.new.onInit (http://localhost:57703/packages/get_server/src/widgets/pageable.dart.lib.js:1601:12)
at server.GetServerController.new.[_onStart] (http://localhost:57703/packages/get_server/src/framework/get_instance/src/lifecycle.dart.lib.js:103:12)
at _InternalFinalCallback.new.call (http://localhost:57703/packages/get_server/src/framework/get_instance/src/lifecycle.dart.lib.js:33:48)
at get_instance.GetInstance..[_startController] (http://localhost:57703/packages/get_server/src/framework/get_instance/src/get_instance.dart.lib.js:253:19)
at get_instance.GetInstance.
.[_initDependencies] (http://localhost:57703/packages/get_server/src/framework/get_instance/src/get_instance.dart.lib.js:212:35)
at get_instance.GetInstance..find (http://localhost:57703/packages/get_server/src/framework/get_instance/src/get_instance.dart.lib.js:293:40)
at get_instance.GetInstance.
.put (http://localhost:57703/packages/get_server/src/framework/get_instance/src/get_instance.dart.lib.js:161:19)
at Object.Inst$124put [as Inst|put] (http://localhost:57703/packages/get_server/src/framework/get_instance/src/extension_instance.dart.lib.js:113:43)
at server.GetServer.new.server.GetServerApp.new (http://localhost:57703/packages/get_server/src/widgets/pageable.dart.lib.js:1285:54)
at new server.GetServer.new (http://localhost:57703/packages/get_server/src/widgets/pageable.dart.lib.js:1351:36)
at main$ (http://localhost:57703/main.dart.lib.js:14:19)
at main (http://localhost:57703/web_entrypoint.dart.lib.js:33:29)
at main.next ()
at http://localhost:57703/dart_sdk.js:40571:33
at _RootZone.runUnary (http://localhost:57703/dart_sdk.js:40441:59)
at _FutureListener.thenAwait.handleValue (http://localhost:57703/dart_sdk.js:35363:29)
at handleValueCallback (http://localhost:57703/dart_sdk.js:35931:49)
at Function._propagateToListeners (http://localhost:57703/dart_sdk.js:35969:17)
at _Future.new.[_completeWithValue] (http://localhost:57703/dart_sdk.js:35817:23)
at http://localhost:57703/dart_sdk.js:34998:46
at _RootZone.runUnary (http://localhost:57703/dart_sdk.js:40441:59)
at _FutureListener.then.handleValue (http://localhost:57703/dart_sdk.js:35363:29)
at handleValueCallback (http://localhost:57703/dart_sdk.js:35931:49)
at Function._propagateToListeners (http://localhost:57703/dart_sdk.js:35969:17)
at _Future.new.[_completeWithValue] (http://localhost:57703/dart_sdk.js:35817:23)
at async._AsyncCallbackEntry.new.callback (http://localhost:57703/dart_sdk.js:35838:35)
at Object._microtaskLoop (http://localhost:57703/dart_sdk.js:40708:13)
at _startMicrotaskLoop (http://localhost:57703/dart_sdk.js:40714:13)
at http://localhost:57703/dart_sdk.js:36191:9

from get_server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.