-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Help needed #50
Comments
Here is a more extended trace. 2023-01-06 13:39:19.736 6921-6921 ViewRootIm...nActivity] com.example.sdui I ViewPostIme pointer 0 |
import 'package:flutter/material.dart'; void main() async { class MyApp extends StatelessWidget { @OverRide Map<String, WidgetBuilder> _routes() => |
Sorted, I was using NodeRed to input the json. The put method expected some body, your code is sending null. Can you plase just send a {} Regards |
Hi there.
I am new to Android developement, and hope that you can help me.
I have used your example code and added my own url.
I get a http 400 error, and cannot understand it. When I do a curl to that url fiwth a post I do get the correct content.
Here is the debug output from studio. Help will much appreciated!
2023-01-06 13:32:38.578568 - Name=DynamicRouteState Level=LEVEL.INFO : initial: deep_link=null
2023-01-06 13:32:38.608 6921-32448 flutter com.example.sdui I 2023-01-06 13:32:38.608734 - Name=Http Level=LEVEL.ERROR : POST http://192.168.1.98:1880/screens status=400 request_header_Content-Type=application/json; charset=utf-8 request_header_Accept=application/json; charset=utf-8 response_header_connection=keep-alive response_header_x-powered-by=Express response_header_access-control-allow-origin=* response_header_date=Fri, 06 Jan 2023 11:32:38 GMT response_header_content-length=1000 response_header_content-type=text/html; charset=utf-8 response_header_x-content-type-options=nosniff response_header_content-security-policy=default-src 'none'
2023-01-06 13:32:38.608 6921-32448 flutter com.example.sdui I Error:
:400
2023-01-06 13:32:38.611 6921-32448 flutter com.example.sdui I 2023-01-06 13:32:38.611324 - Name=DynamicRouteState Level=LEVEL.ERROR : provider=StaticRouteContentProvider(url=http://192.168.1.98:1880/screens)
2023-01-06 13:32:38.611 6921-32448 flutter com.example.sdui I Error:
:400
2023-01-06 13:32:38.611 6921-32448 flutter com.example.sdui I Cause:
#0 Http.post (package:sdui/src/http.dart:92:9)
#1 _FutureBuilderState._subscribe. (package:flutter/src/widgets/async.dart:628:33)
2023-01-06 13:32:38.652 6921-6921 DecorView com.example.sdui I notifyKeepScreenOnChanged: keepScreenOn=false
2023-01-06 13:32:38.654 6921-6921 ViewRootIm...nActivity] com.example.sdui D performTraversals params={(0,0)(fillxfill) sim={adjust=resize} ty=BASE_APPLICATION fmt=TRANSLUCENT wanim=0x1030001
fl=81810100
The text was updated successfully, but these errors were encountered: