The warning is irrelevant to the actual error. The actual error is below it. Your api returns the wrong result starting with <!DOCTYPE html> instead of a json response.
As for that warning. It's likely an error due to changes in Flutter 3. Upgrading the provider package (where the warning comes from) to its latest version might solve it. The warning itself is quite harmless and shouldn't be breaking anything.