FlutterFlow / flutterflow-issues

A community issue tracker for FlutterFlow.
118 stars 19 forks source link

App NEVER run in "Test Mode" #1795

Closed dmslabsbr closed 9 months ago

dmslabsbr commented 10 months ago

Has your issue been reported?

Current Behavior

After several attempts, I discovered that the app operates as expected when I switch to the "RUN MODE". However, it still refuses to work in "Test Mode".

It's really difficult to progress without Instant Loading in Test mode. I am currently completely unable to use it.

I've tried on different computers and encountered the same issue across all of them.

I'm currently using FlutterFlow 4.0 and Flutter 3.13.7. Notably, there's no error indicated by these versions.

In "Test Mode", the loading bar keeps spinning indefinitely.

I shared the app to other flutterflow users who cloned the app and it still didn't work in test mode.

I tested it on other browsers and it didn't work either.

I've captured the following error from the browser's debug console:

As suggested, I downloaded the code and checked my computer to see if there were any errors in the dependencies.

I ran the command: flutter pub get --no-example

Apparently no errors.

Here's the code of the function that's displayed on the screen when this issue occurs:

// Automatic FlutterFlow imports
import '/backend/schema/structs/index.dart';
import '/backend/supabase/supabase.dart';
import '/flutter_flow/flutter_flow_theme.dart';
import '/flutter_flow/flutter_flow_util.dart';
import '/custom_code/actions/index.dart'; // Imports other custom actions
import '/flutter_flow/custom_functions.dart'; // Imports custom functions
import 'package:flutter/material.dart';
// Begin custom action code
// DO NOT REMOVE OR MODIFY THE CODE ABOVE!
import 'package:supabase_flutter/supabase_flutter.dart';
/**
  renomear o nome de um arquivo no supabase storage
 */
Future<bool> trocaNomeArquivoSupabase(
    String nome, String novoNome, String bucketName) async {
  print("Action: trocaNomeArquivoSupabase 6");
  bool ret = false;
  try {
    final supabase = Supabase.instance.client;
    final storage = supabase.storage;
    print("Nome: " + nome + " para: " + novoNome);
    //final Future<String> result = storage.from(bucketName).move(nome, novoNome);
    final String result = await storage.from(bucketName).move(nome, novoNome);
    print("result: " + result.toString());
    ret = true;
  } catch (e) {
    print('Erro ao renomear arquivo: $e');
  }
  return ret;
}

I deleted custom code "trocaNomeArquivoSupabase" and it still not work. Now, a new error appears.

dart_sdk.js:52 Uncaught TypeError: Cannot read properties of undefined (reading 'Symbol(_privateNames)')
    at dart.privateName (dart_sdk.js:52:24)
    at load__packages__promotorias__flutter_flow__nav__serialization_util_dart (lista_buckets_supabase.dart:36:1)
    at Object.execCb (require.js:1696:33)
    at Module.check (require.js:883:51)
    at Module.<anonymous> (require.js:1139:34)
    at require.js:134:23
    at require.js:1189:21
    at each (require.js:59:31)
    at Module.emit (require.js:1188:17)
    at Module.check (require.js:938:30)
    at Module.<anonymous> (require.js:1139:34)
    at require.js:134:23
    at require.js:1189:21
    at each (require.js:59:31)
    at Module.emit (require.js:1188:17)
    at Module.check (require.js:938:30)
    at Module.<anonymous> (require.js:1139:34)
    at require.js:134:23
    at require.js:1189:21
    at each (require.js:59:31)
    at Module.emit (require.js:1188:17)
    at Module.check (require.js:938:30)
    at Module.<anonymous> (require.js:1139:34)
    at require.js:134:23
    at require.js:1189:21
    at each (require.js:59:31)
    at Module.emit (require.js:1188:17)
    at Module.check (require.js:938:30)
    at Module.<anonymous> (require.js:1139:34)
    at require.js:134:23
    at require.js:1189:21
    at each (require.js:59:31)
    at Module.emit (require.js:1188:17)
    at Module.check (require.js:938:30)
    at Module.<anonymous> (require.js:1139:34)
    at require.js:134:23
    at require.js:1189:21
    at each (require.js:59:31)
    at Module.emit (require.js:1188:17)
    at Module.check (require.js:938:30)
    at Module.<anonymous> (require.js:1139:34)
    at require.js:134:23
    at require.js:1189:21
    at each (require.js:59:31)
    at Module.emit (require.js:1188:17)
    at Module.check (require.js:938:30)
    at Module.enable (require.js:1176:22)
    at Module.init (require.js:788:26)
    at callGetModule (require.js:1203:63)
    at Object.completeLoad (require.js:1590:21)
    at HTMLScriptElement.onScriptLoad (require.js:1717:29)

Any insights or suggestions to troubleshoot and resolve this problem would be highly appreciated.

Thanks in advance!

Daniel

Expected Behavior

It should run. Like in "RUN MODE" or after publishing.

Steps to Reproduce

  1. Open the app (https://app.flutterflow.io/project/promo-share-88lh3r )

  2. Click "test Mode" button to start. testMode1

  3. The "Test Mode" never finish and app never run.

Reproducible from Blank

Bug Report Code (Required)

IT4siMjfsItOj7xK1br+YPlR/GQ6NnIgROY0scp/bxIgGIDzPOw+ZPXsQxNCOP2jSghUPkSmmng1wtLMuOOeUsEBCzCtR7o7ys1MbAHdRnKle5OBCJOCVWtQEflUfUiv58K4nh1/IbNvV3A12WCQGefKYBLbQZv4ImdISq/LZO4=

Context

I recently upgraded my plan to be able to use the "test mode" for longer. I never managed to take advantage of this greater time.

It is a big problem for me – I can't test and iterate quickly.

Visual documentation

Dashboard---FlutterFlow1.webm

https://github.com/FlutterFlow/flutterflow-issues/assets/3632067/d3c978b5-d73f-44f2-86f0-0efcd2cff5c1

Additional Info

No response

Environment

- FlutterFlow version: 4.0
- Flutter 3.13.7
- Platform: Web
- Browser name and version: Chrome  117.0.5938.134
- Operating system and version affected: Windows 10
treirouxel88 commented 10 months ago

I have the same problem here, i created a blank projet to test it, here a screen shot of the screen i'm stuck on : image

the error displayed in console here : `dart_sdk.js:5415 Uncaught (in promise) Error: FormatException: SyntaxError: Unexpected end of JSON input

at Object.createErrorWithStack (dart_sdk.js:5415:12)
at Error._throw (dart_sdk.js:8564:18)
at Error.throwWithStackTrace (dart_sdk.js:8561:18)
at async._AsyncCallbackEntry.new.callback (dart_sdk.js:40357:18)
at Object._microtaskLoop (dart_sdk.js:40214:13)
at _startMicrotaskLoop (dart_sdk.js:40220:13)
at dart_sdk.js:35968:9

`

sabatage3 commented 10 months ago

i'm having the same issue, test mode is not working :(

github-actions[bot] commented 10 months ago

This issue is stale because it has been open for 7 days with no activity. If there are no further updates, a team member will close the issue.

dmslabsbr commented 10 months ago

Hi, @hariprasadms , Hi, @aemelyanovff ,

Is there anything new? I keep having the same problem.

katherineqian commented 9 months ago

Hey @dmslabsbr, just wanted to give you an update that we're experiencing a bug related to importing the csv package in custom actions. If you remove that package, Test Mode should work. I'll update here with further information on a fix but wanted to give you that info in case you can iterate on other parts of your project in the meantime.

aemelyanovff commented 9 months ago

This will be fixed in the next update.

juandps commented 2 months ago

I'm having the same problem again.

Any news about this ?

Saaamir commented 3 weeks ago

I have the same Issue after working with XML. I removed everything that could be related to XML and also tried reverting to old versions. I am now stuck in the loading screen everytime.

What can I do?

RouryR commented 3 weeks ago

Hi, @hariprasadms , Hi, @aemelyanovff ,

Is there anything new? I keep having the same problem.

I restored to an older version where it was working, but it hasn't been resolved. If I run the project in Run mode, everything works fine, and when I install the APK, everything also works.

However, Test Mode does not work for me

Screenshot_8

finallyfit commented 3 weeks ago

Commenting here to mention that I'm experiencing the same error.

Saaamir commented 3 weeks ago

@RouryR try removing "play sound" actions. It said "just_audio" in my console error too and after that it was working again.