Failed to get plugins repo from grafana after version upgrade - grafana

I was using Grafana version 8.1.8 and I upgraded to 8.5.14.
After upgrading, I get this error when I deploy:
logger=plugins.update.checker t=2023-02-02T13:55:34.19+0000
lvl=dbug msg="Failed to get plugins repo from grafana.com"
error="Get \"https://grafana.com/api/plugins/versioncheck?
slugIn=someplugin &grafanaVersion=8.5.14\":
http: server gave HTTP response to HTTPS client"
The deployment succeeds, but I see this error in the logs. Any help would be appreciated!

Related

How to solve problem of git cloning while running flutter pub get for a dependency

I am currently working on an old flutter project. I want to install the necessary dependencies so that i can start making changes.
Now when i run the flutter pub get command, i get a certain error which is not explaining how to solve it.
pub get failed (server unavailable) -- attempting retry 10 in 64 seconds...
Git error. Command: git clone --mirror git://github.com/tekartik/platform.dart C:\src\flutter2\.pub-cache\git\cache\platform.dart-6f0f0462856ed9b1246d3c594e824b1b2d81f000
stdout:
stderr: Cloning into bare repository 'C:\src\flutter2.pub-cache\git\cache\platform.dart-6f0f0462856ed9b1246d3c594e824b1b2d81f000'...
fatal: unable to connect to github.com:
github.com[0: 140.82.121.3]: errno=Unknown error
I think the point reached for downloading the dependency and it is not showing me where i can change from git:// to git#github
Below is a code snippet of the pubspec.yaml file where the dependency is to be installed
tekartik_app_platform:
git:
url: git#github.com:tekartik/app_flutter_utils.dart.git
ref: null_safety
path: app_platform
version: '>=0.1.0'
I am trying to get help on how to solve it because i only just got the code which is an old code and so am not sure where to go and make the fix.
Thank you alot in advance.
Try changing it to:
git:
url: https://github.com/tekartik/app_flutter_utils.dart
path: app_platform
ref: null_safety
More info on the packages can be found under: Dependencies on unpublished packages
https://docs.flutter.dev/development/packages-and-plugins/using-packages
I managed to find the solution. The ref value the project was using is null safety which still uses "git://" which is not being used by github anymore and so that is where the error is coming from.
So i changed to
tekartik_app_platform:
git:
url: git#github.com:tekartik/app_flutter_utils.dart.git
ref: dart2_3
path: app_platform
version: '>=0.1.0'
If this is the case for adding the plugin dependecy in flutter by git reference
Make sure you have public access for the same repository. if private then go to bottom of general setting and make it public.

Pulling dependencies from an internal repository via pubspec.yaml

I'm in a corporate firewall which blocks me from pulling packages from pub.dev. However, I was given the option to use an internal repository where I can pull the packages from as tar.gz files.
However, after reading https://dart.dev/tools/pub/dependencies#hosted-packages, I attempted to add this to mypubspec.yaml file:
dependencies:
flutter:
sdk: flutter
http:
hosted:
name: http
url: http://repository.internal-repo.com/repository/googleapis-storage/packages/
version: ^0.12.0+4
If I were to hit the link directly via Chrome (this url is in an internal network) http://repository.internal-repo.com/repository/googleapis-storage/packages/http-0.12.0+4.tar.gz the package downloads as a tar.gz file
But when I run a pub get:
502 notresolvable trying to find package http-0.12.0+4.tar.gz at http://repository.internal-repo.com/repository/googleapis-storage/packages/.
pub get failed (server unavailable) -- attempting retry 1 in 1 second...
I see that you can pull from public Github directly however that is also blocked by our proxy.
Am I doing something wrong here or is this feature not available?
The doc you link says:
or another HTTP server that speaks the same API
I.E. your internal server must implement the pub API. It seems that if you put
http:
hosted:
name: http
url: http://repository.internal-repo.com/foo/
version: ^0.12.0+4
then pub make a request to http://repository.internal-repo.com/foo/api/packages/http It's not clear what it expects to find there.
You may want to unzip your tar file onto a shared drive somewhere and use the path syntax instead, for example (assuming you've unzipped into the http_12_0_4 folder of the pub share and mounted that):
http:
path: /Volumes/pub/http_12_0_4
No version is needed because you've hard-coded that into the folder name.

Error NuGet package google translation API

I'm trying to install the Google.Cloud.Translation.V2 package from NuGet and I keep getting this error
Failed to retrieve information about 'Google.Cloud.Translation.V2' from remote source 'https://api.nuget.org/v3-flatcontainer/google.cloud.translation.v2/index.json'.
An error occurred while sending the request.
Unable to connect to the remote server
No connection could be made because the target machine actively refused it 72.21.81.200:443
Thanks
If you're using the library's version in your command like this:
Install-Package Google.Cloud.Translation.V2 -Version 1.1.0
or:
dotnet add package Google.Cloud.Translation.V2 --version 1.1.0
or:
paket add Google.Cloud.Translation.V2 --version 1.1.0
Then, a firewall may be blocking you. If you're using any of those commands and the error persists, then this is not a coding issue, this issue could be checked on ServerFault for a possible firewall blocking you or any other network issue.

Buildpacks error

I am running an application at IBM Bluemix DevOps and while deploying I am getting this error:
App staging failed in the buildpack compile phase.
On checking logs I found this:
How do I get rid of this problem?
You're trying to use a node npm module which you might not have declared as a dependency. Add gulp to your package.json as show in in the car-dashboard sample you are referencing.

Can't connect to github on terminal. Error message: Proxy CONNECT aborted on

I'm trying to load AFNetworking library on my project but in terminal I have always this error message:
MacBook-Pro-Aleksandr:KAFileMap aleksandrkarpov$ pod install
Analyzing dependencies
Downloading dependencies
Installing AFNetworking (2.5.2)
[!] Error installing AFNetworking
[!] /usr/bin/git clone https://github.com/AFNetworking/AFNetworking.git
/Users/aleksandrkarpov/Desktop/KAFileMap/Pods/AFNetworking --single-branch --
depth 1 --branch 2.5.2
Cloning into '/Users/aleksandrkarpov/Desktop/KAFileMap/Pods/AFNetworking'...
fatal: unable to access 'https://github.com/AFNetworking/AFNetworking.git/':
Proxy CONNECT aborted
Anybody can help me? Thank's
GitHub is currently suffering from a distributed denial of service attack. Try again later.