migrate to dart:ffi

Use dart:ffi instead of platform channels for better performance.
EDIT: This will also make the API a lot nicer, since a lot of async stuff can go away or be made synchronous.

I started it. First step is ffi_gpiod.

https://pub.dev/packages/gpiod

Thanks for the work @DisDis

I am creating a prototype https://github.com/DisDis/gpiod/blob/master/example/main.dart , but currently it does not work :(

I turned on LED.

I published new version, https://pub.dev/packages/gpiod/versions/0.1.0#-example-tab- , I ported only 3 methods(gpiodp_request_line, gpiodp_ensure_gpiod_initialized, gpiodp_get_config) in current moment.  https://github.com/DisDis/gpiod/blob/master/lib/src/utils.dart

Nice work @DisDis !
I'm not sure we need the pthread bindings though, dart's isolates have no shared memory (i.e. nothing to use a mutex for) and the only way for inter-thread communication is message passing
My plan was to have a dart "line event listener" isolate which just repeatedly calls epoll_wait and sends anything that it receives from epoll back to the UI (main) isolate, so no need for pthreads I think

I changed my plan. I im focusing to FFI proxy_gpiod with methods and will replace implementation in flutter_gpiod:

   return  gpiodp_get_num_chips(object, responsehandle);

   return gpiodp_get_chip_details(object, responsehandle);

   return gpiodp_get_line_handle(object, responsehandle);

   return gpiodp_get_line_details(object, responsehandle);

   return gpiodp_request_line(object, responsehandle);

   return gpiodp_release_line(object, responsehandle);

   return gpiodp_reconfigure_line(object, responsehandle);

   return gpiodp_get_line_value(object, responsehandle);

   return gpiodp_set_line_value(object, responsehandle);

   return gpiodp_supports_bias(object, responsehandle);

   return gpiodp_supports_reconfiguration

because pthread is not dynamic library:(

@ardera Yes, but it will be easier if you use FFI async callback( nativ_port ) https://github.com/dart-lang/sdk/blob/master/samples/ffi/async/sample_native_port_call.dart

First iteration https://github.com/DisDis/gpiod/blob/master/example/main.dart
I turned on LED. Not all methods migrated. ( https://github.com/DisDis/gpiod/blob/master/lib/src/bindings/proxy_gpiod/bindings.dart#L31
)

@ardera
Uff. I released stable release(all functions are implemented and worked). It has been a long way.
Can you review the code? https://github.com/DisDis/gpiod
Do you agree if I write you in the authors?
Can we specify a MIT license?
https://pub.dev/packages/gpiod
TODO: Need to finish error handling.

Can you review the code?

I can do that, I don't have time at the moment though
Since you gave me commit access, I assume I should just push my changes (if any) to the repo directly instead of Pull Requests etc?
One thing I noticed was that memory allocated using allocate (which is called in the allocate factory of Structs for example, like LineDetails.allocate) also has to be freed using free.

Do you agree if I write you in the authors?

Yeah I agree

Can we specify a MIT license?

Don't know what you mean by that, flutter-pi, flutter_gpiod and your gpiod are all licensed under MIT
Just as a general clarification: Should your gpiod package exist as a separate package to flutter_gpiod? (kinda looks like that because its called ProxyGpiod and not FlutterGpiod anymore)
My original thought was to upstream gpiod into my flutter_gpiod, and call it version 1.0.0 at that point. The native C-code you wrote could then be included into flutter-pi

Just as a general clarification: Should your gpiod package exist as a separate package to flutter_gpiod? (kinda looks like that because its called ProxyGpiod and not FlutterGpiod anymore)

Maybe thats a good point to restructure flutter-pi packages. The problem with the current system is that even if you don't use the gpiod package, it is installed with flutter-pi. This might also open the door for other developers to publish some packages and make flutter-pi even more useable.

Maybe thats a good point to restructure flutter-pi packages. The problem with the current system is that even if you don't use the gpiod package, it is installed with flutter-pi. This might also open the door for other developers to publish some packages and make flutter-pi even more useable.

That's true, but that's kinda a luxury problem IMO. That's probably a few kilobytes of disk space. Also, you can exclude the gpiod plugin at build-time by taking away the -DBUILD_GPIOD_PLUGIN build flag in the Makefile. I agree though that plugin maintainers (if any) should be able to update their plugin independently of me, i.e. without having to ask for my explicit approval for every single change (pull request).
But

We can't make flutter-pi plugins work similiar to the way android, iOS, windows, macOS & linux desktop plugins work, with the platform-side code of any plugins just residing in the apps source directory (/android, /ios, /windows, etc). That's just not feasible.
It may be possible to have a /usr/lib/flutter-pi-modules/ directory which contains plugin code that will be dynamically loaded when an app is launched. But I can't think of a nice way for managing this modules directory.

Ok guys. I returned.
My todo:

I will deal with error handling.
Add free for all calls.

Don't know what you mean by that, flutter-pi, flutter_gpiod and your gpiod are all licensed under MIT
I missed this :(
'The native C-code you wrote could then be included into flutter-pi'
FFI works only with dynamic library. I believe that the package gpiod must work without flutter.  It is very useful for testing and debugging. Because you can run 'dart server-service-side.dart' and you receive remote debug in IDE.

FFI works only with dynamic library.

Are you sure? I thought that's what DynamicLibrary.executable and  DynamicLibrary.process are for

I believe that the package gpiod must work without flutter. It is very useful for testing and debugging. Because you can run 'dart server-service-side.dart' and you receive remote debug in IDE.

That's okay, then gpiod will be independent of flutter and flutter_gpiod will require flutter.

Are you sure? I thought that's what DynamicLibrary.executable and DynamicLibrary.process are for ...

:facepalm: I missed this :(  I could try calling pthread and epoll methods...in the first implementation.

That's okay, then gpiod will be independent of flutter and flutter_gpiod will require flutter.

What code will you have in flutter_gpiod?

i published version 1.0.1, added error handlers.


v2.4.3: respect constraints when instaling base provider requirements

Issue #, if available:
https://github.com/aws/aws-mwaa-local-runner/issues/282
Description of changes:
Cherry-pick of the commit that fixes the issue on branch v2.5.1, see https://github.com/aws/aws-mwaa-local-runner/pull/289.
Tested locally by building the image.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@Mercury2699 @kuyperse could you approve this PR? This is blocking my team. Thanks!

@dsu4rez Sorry for the delay. In the future, feel free to ping me as well.


Various fixes

Issues reported by phpstan/phpstan-strict-rules (which will be added in separate PR as it reports over 400 other issues).

Coverage increased (+0.1%) to 92.304% when pulling 9fdfe3ccb94a00b81040b592a54906475ad447e4 on kubawerlos:various_fixes into bf8c21cfe5437d32e96854a988639a9cb7538da6 on FriendsOfPHP:3.0.

Thank you @kubawerlos.


How to get PDG in json format given a dictionary full of .cpp file

There are 1000 cpp files in the tmp dictionary.

what command should I run to get a json file that contains the PDG for all functions in those 1000 cpp files.
I'm not familiar with scala, I always come across errors with graph-for-funcs.sc.

please provide more information about what you tried out first, and someone might help you solve your task. best place for doing this is the Discord channel


Personal library (Book Web)

See Req. 4.6

Closing this because we scrapped this feature due to time-limit.


Add functionality to schema transform to check against list of allowed values for certain fields, eg currency

This issue has been hanging for a while, and is effectively implemented in the unit tests.


⚠ Slack has degraded performance

In 5046df4, Slack (https://status.slack.com/api/v2.0.0/current) experienced degraded performance:

HTTP code: 200
Response time: 73 ms

Resolved: Slack performance has improved in 90cddec.


Imports in diffusion_policy_state_pusht_demo notebook fail in Google Colab runtime

Hello guys,
Very impressive work. Would love to try it out with state-based notebook, but fail to run in Google Colab runtime. Import cell fails with:
XlaRuntimeError: FAILED_PRECONDITION: DNN library initialization failed. Look at the errors above for more details.

on this line:
from diffusers.training_utils import EMAModel

Could you please advise on fix/workaround?

Hi @alex-klimov I have updated the notebooks.
Fixed by updating diffusers to 0.18.2

Thank you! I will check it out soon. I got the project to work on my local machine, so not blocked on my side.


[Event Change Request] Codeunit 21 Item Jnl.-Check Line

Dear ALAppExtensions team,
Through this issue we would like to request event publisher which would be called as follows from be added to Codeunit 21 - Item Jnl.-Check Line with the following signature:
    [IntegrationEvent(false, false)]
    local procedure OnBeforeUpdateItemJnlLineFilter(var ItemJournalLine: Record "Purchase Line",var IsHandled: Boolean)
    begin
    end;

with VAR parameter PurchaseLine,PurchaseLine
which would be called as follows at the end of the procedure from CheckDates:
    local procedure CheckDates(ItemJnlLine: Record "Item Journal Line")
    var
        InvtPeriod: Record "Inventory Period";
        UserSetupManagement: Codeunit "User Setup Management";
        DateCheckDone: Boolean;
    begin
        with ItemJnlLine do begin
            TestField("Posting Date");
            if "Posting Date" <> NormalDate("Posting Date") then
                FieldError("Posting Date", Text000);

            OnBeforeDateNotAllowed(ItemJnlLine, DateCheckDone);
            if not DateCheckDone then
                UserSetupManagement.CheckAllowedPostingDate("Posting Date");

                // >>>> New >>>>>>>>>>>>>>>>
                IsHandled := false;
                OnBeforeUpdateItemJnlLineFilter(ItemJnlLine,IsHandled);
                if not IsHandled then
                // <<<< New <<<<<<<<<<<<<<<<

                    if not InvtPeriod.IsValidDate("Posting Date") then
                        InvtPeriod.ShowError("Posting Date");

            if "Document Date" <> 0D then
                if "Document Date" <> NormalDate("Document Date") then
                    FieldError("Document Date", Text000);
        end;
    end;

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.


Pr1 basic setup

I have broken down the big pull request into several steps.
This is step 1
Changes introduced  in these commits:

setup userguide (compilable with lualatex and xelatex, usage of listings for code etc.) and start work on basic structure
add introductory section
add basic setup section
add section on how to edit personal data
add version info to template and userguide (will be automated later)

Cool thanks! Before I merge, two things:
a) Looks like there are still red TODOs in there, are these fixes by later PRs?
b) There are some badbox warnings, I will take a look at them


flesh out Text plotitem class #2158

requested fields were added to Text, tutorial was updated

:+1:


[zh] adjust format in concepts

 %./scripts/lsync.sh content/zh/docs/concepts/cluster-administration/networking.md
content/zh/docs/concepts/cluster-administration/networking.md is still in sync

% ./scripts/lsync.sh content/zh/docs/concepts/overview/working-with-objects/common-labels.md
content/zh/docs/concepts/overview/working-with-objects/common-labels.md is still in sync

% ./scripts/lsync.sh content/zh/docs/concepts/scheduling-eviction/taint-and-toleration.md
content/zh/docs/concepts/scheduling-eviction/taint-and-toleration.md is still in sync

 % ./scripts/lsync.sh content/zh/docs/concepts/workloads/controllers/daemonset.md
content/zh/docs/concepts/workloads/controllers/daemonset.md is still in sync

% ./scripts/lsync.sh content/zh/docs/concepts/workloads/controllers/ttlafterfinished.md
content/zh/docs/concepts/workloads/controllers/ttlafterfinished.md is still in sync

/lgtm
/approve


Something Went Wrong!

This toast message comes about once a day - probably due to some kind of network problem.
It never goes away and the error page keeps refreshing with an increasing error count.
After shutting down app also, the toast message stays on screen forcing me to reboot the phone.
I tracked the error message to WebViewClient.onReceivedError method -
not sure how to handle this error.
Desired behavior: Give error and allow user to refresh page once network has recovered.

Got it. It needs tight regulation of network connection updates, currently it's very sensitive.
Will work on it in coming update.
For testing purposes, you can just force stop the app from its settings to kill the toast, instead of rebooting device every time.


Logo For  ZXing

Hi , I'm a graphic designer. I like your project, I want to contribute by creating a free logo for your project. What do you think?

Thanks, but no logo is required for this project.


help! Multibit is not showing my transaction, but is confirmed in blockchain.info. Reset Blockchain and Transactions dont work

Hi! I made a transaction that did not appear in multibit, but appears confirmed (77 confirmations) in blockchain.info. I  Reset Blockchain and Transactions about 7 times but the transaction still missing for multibit. I dont know what to do...
I have windows 7 ultimate
Multibit ver 0.5.17

Hii jim 618 ,,,,,can you please help me ,,,my multibit 0.5.18 wallet  is show this line updates stopped and my wallet is not recieved bitcoins and not show transcations ,,,,but my blockchain confirmations is show (52 confirmations) but my wallet not recieved transactions ,,,,,,,so you can please solve my wallet problems my wallet link is 1CTGxjDbNg6MwiqvFCf5X4ByBdNXahBCDm
i hope you can help me

Were you able to get this resolved through repeated Reset operations?

I have the same issue. The transaction was sent by blockchain, I report that already confirmed that everything is in order, so it should be reflected in my wallet, but not, in the wallet the transaction is not shown, although I have not received.
What should I do? please help

Why you closed this topic Mr Gary .
More and more people have big problems with Multibit and you have not done nothing .
You remember me , 3 years ago Multibit eat my BTC ( APROX 1 BTC ) and noone gived me an explication .
İ know who are you and trust me , i have not forget what you and your friend done .
You have any solution for my problem or i need to take other actions ??
Thank you


How can I config client for elasticsearch commiter

Hi, I'd like to commit my data to a remote running elasticsearch, but I did not find configuration about client in the example. could you please let me know how can I do that, thanks.

Sure, the Elasticsearch committer has its own site: https://www.norconex.com/collectors/committer-elasticsearch/
For configuration options, look here: https://www.norconex.com/collectors/committer-elasticsearch/configuration
If you want to report issues, have questions or else, you can use: https://github.com/Norconex/committer-elasticsearch/issues
Let me know if that answers your question.

Thank you, but seems that I could not config client's host in the committer. here is my committer configuration.

opportunity
test
xx.xx.xx.xx:9300/elasticsearch

Actually, I'd like to specify client's host in clusterName, but seems that above configuration does not work for me.

It works for me now, thank you.
The elasticsearch committer library only works with elasticsearch 1.5,  the latest version is 2.1.0. Hope the committer library can be upgrate as well.

Glad it works.  I created a new ticket for upgrading the library: https://github.com/Norconex/committer-elasticsearch/issues/2.


Remove C5/C6g agents and update new AMIs from #495

Description
Remove C5/C6g agents and update new AMIs from #495
Issues Resolved
https://github.com/opensearch-project/OpenSearch/issues/16255
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Can you please confirm amis are public? Thanks!

They are 👍


Add Support & Testing for Cloudflare Workers SSR

Hi @yassinedoghri , would this be possible for edge deploying? e.g Netlify/Vercel edge

Hey @francoromanol, I'm hoping to figure it out at some point, I have set up an example with Netlify but it doesn't seem to be working.

Also, there's an issue on that matter (https://github.com/yassinedoghri/astro-i18next/issues/26)
I'm currently focused on getting features out during my spare time. If anyone has an idea on how to fix that, I'm all ears.

Hey @yassinedoghri thanks for answering! I will try to check it out too. I also noticed I can't deploy to vercel/serverless since 1.0.0-beta.13:
14:40:25 [build] Rearranging server assets...
[@astrojs/vercel] The module "pnpapi" inside the file "/Users/me/me/Work/project/node_modules/esbuild/lib/main.js" couldn't be resolved. This may not be a problem, but it's worth checking.
 error   Failed to parse /Users/me/me/Work/project/node_modules/esbuild-darwin-arm64/bin/esbuild as script:
  Unexpected character '�' (1:0)

Do you know what could be happening?

Do you know what could be happening?

Sorry, no clue with that error message.

So, you were able to deploy prior to v1.0.0-beta.13... 🤔 That means it's probably got something to do with the recent changes.
As a start, I'll setup examples for Vercel and Cloudflare (which will probably not work but it'll help debugging I guess).

Yes, just tested it again. Okay, I will check everything again and ask in Vercel about this error.

Hi Yassine,
I created a discussion at Vercel, I'm not really sure if v1.0.0-beta.13 changes introduce this TS problem, but it may be worth to check.
Regards

Hey @yassinedoghri,
I forked the repo to contribute to this problem, but I never developed an Astro plugin — though reading the codebase is clear how it works —, how can I test the packages once I changed the code?
I see there is a build command which creates the dist directory, but if I import it from an astro.config file it yields an error
// examples/vercel/astro.config.mjs
import astroI18next from "../../dist/";

What am I doing wrong?
Thanks

Hey @francoromanol,
No need to import the dist directory, I think the import looks for the package.json file where imports are specified. So I think you can just import the folder like so:
// examples/vercel/astro.config.mjs
import astroI18next from "../..";

Haven't tried it though. I usually define the local astro-i18next as a dependency with file:../... And I have yet to figure the best way to test these locally 😅

Hi @yassinedoghri,
Thanks, I finally made it. I will take a look and let you know if I find something :)

Hi again,
I track this the vercel error to commit ea939db76114ed0ffb5efec452d6fcfaefe8962c: feat: add option to show the default locale in the url (https://github.com/yassinedoghri/astro-i18next/pull/51)
I will try my best to find the change that generated this issue.
Cheers!

Okay, I found the line:
// src/index.ts
100        // initializing runtime astro-i18next config
101          serverImports += `import {initAstroI18next} from "astro-i18next";`;

I assume this is the - initialize astro-i18next config and to make it available at runtime mentioned in the PR.
I tested injecting the three scripts alone: imports, i18nextInit, astroi18nextInit and it only failed with imports when line 101 is defined.
106        injectScript("page-ssr", imports);

Any thoughts on this? Maybe it's the way of importing it?


[web]: Http requests throw XMLHttpRequest error

Error: XMLHttpRequest error.
    dart:sdk_internal 118163:30                           get current
packages/http/src/browser_client.dart.lib.js 212:124  <fn>
dart:sdk_internal 35540:58                            runUnary
dart:sdk_internal 30956:29                            handleValue
dart:sdk_internal 31466:49                            handleValueCallback
dart:sdk_internal 31498:17                            _propagateToListeners
dart:sdk_internal 31348:25                            [_complete]
dart:sdk_internal 35874:24                            _cancelAndValue
dart:sdk_internal 18161:17                            <fn>
dart:sdk_internal 4978:16                             _checkAndCall
dart:sdk_internal 4983:17                             dcall
dart:sdk_internal 99467:93                            <fn>
    at Object.createErrorWithStack (http://localhost:49173/dart_sdk.js:4786:12)
    at Object._rethrow (http://localhost:49173/dart_sdk.js:35900:16)
    at async._AsyncCallbackEntry.new.callback (http://localhost:49173/dart_sdk.js:35896:13)
    at Object._microtaskLoop (http://localhost:49173/dart_sdk.js:35756:13)
    at _startMicrotaskLoop (http://localhost:49173/dart_sdk.js:35762:13)

Facing this issue on flutter web only, works fine on flutter mobile.

Check the debug console in your browser for more details on why the http request failed

Hi @PixelToast
can you please provide your flutter doctor -v ,
your flutter run --verbose,
your pubspec.yaml
and a reproducible minimal code sample.
Thank you

I solved the issue

@harshraj6982 please provide info on how the issue was solved before closing the issue.

Could everyone who still has this problem please file a new issue with the exact description of what happens, logs and the output of flutter doctor -v.
All system setups can be slightly different, so it's always better to open new issues and reference related issues.

Here is the code that I'm trying to run :
Map<String, dynamic> body = {             'client_secret': _clientSecret,             'source': "print'Hello World!'",             'lang': 'PYTHON',           };           http               .post('https://api.hackerearth.com/v3/code/run',                   body: jsonEncode(body))               .then((value) => print(value))               .catchError((error) => print(error));
Here is the error :
Error: XMLHttpRequest error.     dart:sdk_internal 123890:30                           get current packages/http/src/browser_client.dart.lib.js 212:124  <fn> dart:sdk_internal 36953:58                            runUnary dart:sdk_internal 32045:29                            handleValue dart:sdk_internal 32592:49                            handleValueCallback dart:sdk_internal 32630:17                            _propagateToListeners dart:sdk_internal 32464:25                            [_complete] dart:sdk_internal 37363:24                            _cancelAndValue dart:sdk_internal 18428:17                            <fn>
Here's the o/p to flutter doctor -v
`[✓] Flutter (Channel master, 1.19.0-2.0.pre.143, on Microsoft Windows [Version 10.0.19041.264], locale en-US)
• Flutter version 1.19.0-2.0.pre.143 at C:\src\flutter
• Framework revision 9d58a87066 (4 days ago), 2020-05-22 22:37:01 -0700
• Engine revision 9ce1e5c5c7
• Dart version 2.9.0 (build 2.9.0-10.0.dev 7706afbcf5)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
• Android SDK at C:\Users\timsi\AppData\Local\Android\sdk
• Platform android-29, build-tools 29.0.3
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)
• All Android licenses accepted.
[✓] Chrome - develop for the web
• Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
[✗] Visual Studio - develop for Windows
✗ Visual Studio not installed; this is necessary for Windows development.
Download at https://visualstudio.microsoft.com/downloads/.
Please install the "Desktop development with C++" workload, including the following components:
MSBuild
MSVC v142 - VS 2019 C++ x64/x86 build tools
- If there are multiple build tool versions available, install the latest
Windows 10 SDK (10.0.17763.0)
[✓] Android Studio (version 3.6)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 45.0.1
• Dart plugin version 192.7761
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)
[✓] VS Code (version 1.45.1)
• VS Code at C:\Users\timsi\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.10.2
[✓] Connected device (3 available)
• Windows    • Windows    • windows-x64    • Microsoft Windows [Version 10.0.19041.264]
• Web Server • web-server • web-javascript • Flutter Tools
• Chrome     • chrome     • web-javascript • Google Chrome 83.0.4103.61`

Just enable cors it will not throw this kind of error. I just forget to enable cors in my backend.

hello I have same issue with flutter web. Could you let me know the solution in detail~?

hello I have same issue with flutter web. Could you let me know the solution in detail~?

Which backend you are using?

Then you should contact firebase support.

I have cors enabled in django but still getting same error, please help

Just enable cors it will not throw this kind of error. I just forget to enable cors in my backend.

I have got the same problem..can you show me how to enable cors?

Just enable cors it will not throw this kind of error. I just forget to enable cors in my backend.

I have got the same problem..can you show me how to enable cors?

See this Q&A for some help in enabling CORS:
https://stackoverflow.com/questions/60191683/xmlhttprequest-error-in-flutter-web-enabling-cors-aws-api-gateway

See this Q&A for some help in enabling CORS:
https://stackoverflow.com/questions/60191683/xmlhttprequest-error-in-flutter-web-enabling-cors-aws-api-gateway

@suragch I'm experiencing the same problem as well. I've taken a look at the link but it doesn't seem to be helpful for non-AWS backends. I'm currently using Google Cloud Platform's Compute Engine on the server side and can't figure out how to enable CORS like @abumasum too. Would really appreciate any advice or help you can give. Thanks!

I am using Xampp , it's working on mobile platforms but the web giving me this error. I tried everything in this conversation's mentions still giving the same error.

I am getting the same error with php api so i add the php code these lines ;
` header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Methods: GET, POST');

header("Access-Control-Allow-Headers: X-Requested-With");`

There is no more error.

I am getting the same error with php api so i add the php code these lines ;
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Methods: GET, POST');
 header("Access-Control-Allow-Headers: X-Requested-With");
There is no more error.It is enables CORS. I don't know what that is but i am gonna read the manual.

#Fixed Thank you so much. Did you read the manual? I suspect it too.

It's simple for using API. Browsers HTTP is usually reserved access data from other domains. We call this CORS. So we can't use API without permission from this domain. If you are the host of this domain, you can set by following this https://enable-cors.org/server.html. I hope it can help you all.

It's simple for using API. Browsers HTTP is usually reserved access data from other domains. We call this CORS. So we can't use API without permission from this domain. If you are the host of this domain, you can set by following this https://enable-cors.org/server.html. I hope it can help you all.

Oh thank you! Very useful link.

I solved the issue

ho do you resolve it

All Possible Solution added [Solved] IN Flutter Web getting ‘XMLHttpRequest’ error while making HTTP call

Thanks for sending me.
28 Haz 2021 Pzt 09:06 tarihinde exeptionerror @.***>
şunu yazdı:

All Possible Solution added [Solved] IN Flutter Web getting
‘XMLHttpRequest’ error while making HTTP call
https://fluttercorner.com/flutter-web-getting-xmlhttprequest-error-while-making-http-call/
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/flutter/flutter/issues/57421#issuecomment-869383857,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADLOG3HPMCFI7GBTHICCFXDTVAGPVANCNFSM4NDJJGWQ
.

edit both files
etc/apache2/apache2.conf
etc/apache2/httpd.conf
and add this to the end
Header set Access-Control-Allow-Origin "*"