Comments (3)
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.
Thanks for your answer. Tried your code but still get the same error.
from get_server.
[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)
- how to save image using multipart HOT 3
- how to upload File(image,pdf, etc...) to server HOT 3
- Unhandled exception: MimeMultipartException: Bad multipart ending
- A big thanks for your valuable support.... 👍👍👍 Below i list 3 problem when I integration/testing getxserver HOT 1
- File Upload some time get unreadable image HOT 3
- How to run the server app in the background of a flutter app? HOT 1
- How to config CER and how redirect http to https ? HOT 1
- Custom Response - Empty list as json HOT 2
- CRUD example required HOT 1
- context_request support formdata
- How to show the post request comming from the user ?
- Get payload data from post request HOT 2
- cant run compiled js file
- Flutter: webview_flutter_plus error: Server Error: Unsupported operation: ServerSocket.bind HOT 1
- ``` Apache License Copyright Request ``` Wish to modify some of source code for my own project HOT 2
- This project is truly impressive.You are absolutely insane. HOT 2
- Is this project abandoned?
- SocketException: Connection reset by peer (OS Error: Connection reset by peer, errno = 104), address = 0.0.0.0 HOT 1
- Refactoring this project HOT 2
- Flutter web application Cross-Origin Resource Sharing (CORS) issues
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from get_server.