Skip to content
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

How do I run through the go programming language? #979

Closed
ManuelBot59 opened this issue Jan 10, 2022 · 17 comments
Closed

How do I run through the go programming language? #979

ManuelBot59 opened this issue Jan 10, 2022 · 17 comments

Comments

@ManuelBot59
Copy link

hi, i have tried to update this new version, uh i try to run in many ways this new version of phoneinfoga v.2.4 but i have problems. can you help me, please. I think it is working through the GO programming language. I have tried the following: go run main.go, go build main.go and I get this:


github.com/sundowndev/phoneinfoga/v2/api

api / server.go: 41: 26: undefined: Assets


Hence, what else is it going on? Help me please !!!

@sundowndev
Copy link
Owner

Hi @ManuelQ59, this is an expected error since PhoneInfoga needs to build its web client first, to be able to compile. Please read contribute documentation page to get started properly.

@ManuelBot59
Copy link
Author

@sundowndev hi, i have tried in all the ways to want to start according to the link you provided for me, but i have not been achieving successfully. there will be some tutorial on how to start it please, it would be greatly thank you.

@sundowndev
Copy link
Owner

Could you provide commands you used and the output so I can help you further on that ?

@ManuelBot59
Copy link
Author

Hi @sundowndev, In the phoneinfoga cloned folder, I did the following:
(cd client && npm run && npm run build) And then
cd ..
go generate main.go
go build -v .
go run main.go

After all that procedure I did. I keep getting this:
github.com/sundowndev/phoneinfoga/v2/api
api / server.go: 41: 26: indefinide: Active

@sundowndev
Copy link
Owner

sundowndev commented Jan 12, 2022

You didn't follow the instructions properly. You should run the following commands :

(cd client && npm i && npm run build)
go generate ./...
go run main.go

@ManuelBot59
Copy link
Author

Run all those commands inside the client folder?

@sundowndev
Copy link
Owner

No, at the root of the project

@ManuelBot59
Copy link
Author

Thank you. I'll try it. Thank you very much for your dedication in teaching. ☺️

@ManuelBot59
Copy link
Author

when executing the following command: npm i or npm i --force, I get the following error:


npm ERR! code ETARGET
npm ERR! notarget No matching version found for @vue/cli-plugin-router@3.12.1.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2022-01-13T13_25_57_978Z-debug.log


after that i can't run the tool as i get the same thing that started this problem.

@sundowndev
Copy link
Owner

sundowndev commented Jan 13, 2022

Could you try again with yarn instead ? Execute yarn to install dependencies in the client folder. Thanks

# Example
(cd client && yarn && yarn build)
go generate ./...
go run main.go

npm i is working fine on my end, what nodejs version are you running on ?

@ManuelBot59
Copy link
Author

I cloned the tool again, I went to the client folder, and I ran yarn and I get the following:

┌──(root💀tedd)-[/home/anony/TOOLS/phoneinfoga/client]
└─# yarn
00h00m00s 0/0: : ERROR: There are no scenarios; must have at least one.

@ManuelBot59
Copy link
Author

¿Podrías intentarlo de nuevo con hilo en su lugar? Ejecutar yarnpara instalar dependencias en la carpeta del cliente. Gracias

# Ejemplo 
(cliente de cd && hilo && construcción de hilo)
ir a generar ./...
ve a ejecutar main.go

npm i está funcionando bien en mi extremo, ¿en qué versión de nodejs está ejecutando?

┌──(root💀anony)-[/home/anony]
└─# node --version
v16.13.2

┌──(root💀anony)-[/home/anony]
└─# nodejs --version
v12.22.7

@ManuelBot59
Copy link
Author

I cloned the tool again, I went to the client folder, and I ran yarn and I get the following:

┌──(root💀tedd)-[/home/anony/TOOLS/phoneinfoga/client] └─# yarn 00h00m00s 0/0: : ERROR: There are no scenarios; must have at least one.

Fixing this problem, I had to uninstall and reinstall the yarn, using this tutorial.

curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list

sudo apt update && sudo apt install yarn

yarn

@ManuelBot59
Copy link
Author

After executing main.go, how do I use the tool in console mode and in server mode?


┌──(root💀anony)-[/home/anony/TOOLS/phoneinfoga]
└─# go run main.go
PhoneInfoga is one of the most advanced tools to scan phone numbers using only free resources.

Usage:
phoneinfoga [command]

Examples:
phoneinfoga scan -n

Available Commands:
help Help about any command
scan Scan a phone number
serve Serve web client
version Print current version of the tool

Flags:
-h, --help help for phoneinfoga

Use "phoneinfoga [command] --help" for more information about a command.


I put this command and it shows me that it is not found:

┌──(root💀anony)-[/home/anony/TOOLS/phoneinfoga]
└─# phoneinfoga version
phoneinfoga: command not found

@sundowndev
Copy link
Owner

You have to use go run main.go to run commands : go run main.go version. If you want to build the binary, use go build.

@ManuelBot59
Copy link
Author

I have already run it in a web interface mode, when I search for a phone number I get the following:


Numverify scan: You have not supplied an API Access Key. [Required format: access_key=YOUR_ACCESS_KEY]
OVH Telecom scan: json: cannot unmarshal object into Go value of type []suppliers.OVHAPIResponseNumber


How do I provide an api key of num_verify?

How do I solve this 2nd error? ----> OVH Telecom scan

@sundowndev
Copy link
Owner

About Numverify: please consider reading the documentation again and ensure you created an API key on the apilayer website.

OVH error is covered in #1106

Closing for inactivity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants