Git Product home page Git Product logo

Comments (15)

camiloribeiro avatar camiloribeiro commented on September 24, 2024

This seems to be a duplicated issues. @benjelloun23 can you check if it is the same as #24 and close the issue 24 if so?

Nevertheless, it seems that you are curling wrong. It should be:

  $ curl localhost:31900/whathever/your/service/expects/here

Another thing I noticed in your configuration is the use of two different versions for primary and secondary. You should use the same version for both and the new version as candidate. This is needed to check if there is any noise (different data content between the same version for the same request).

if you want to check and example you can check it here: https://github.com/twitter/diffy/tree/master/example

  • requires docker and docker-compose

from diffy.

benjelloun23 avatar benjelloun23 commented on September 24, 2024

Hello camiloribeiro, Thank you for your answer.

  1. for the CURL, the syntaxe that i'm using seems correct, otherwise can you send me a good exemple for curl?.
  2. for primary and secondary have same adresse, it's juste the port number who change "9990 & 9991". I don't know if this is the correct way because i see that on the tutorial bellow :

java -jar diffy-server.jar
-candidate=localhost:9992
-master.primary=localhost:9990
-master.secondary=localhost:9991
-service.protocol=http
-serviceName=My-Service
-proxy.port=:31900
-admin.port=:31159
-http.port=:31149
-rootUrl='localhost:31149'

from diffy.

camiloribeiro avatar camiloribeiro commented on September 24, 2024

Hi,

The url you are using seems to be wrong:

http:// 192.168.10.116 : 50752 /tempo/version:9990'
protocol service_host service_port path

As you see in the given url, it seems that the :9990 is not the port, but part of the path. If you believe it is the port, please check again. Check out this other example:

  command: java -jar ./target/scala-2.11/diffy-server.jar  
      -candidate='candidate:8080' 
      -master.primary='primary:8080' 
      -master.secondary='secondary:8080'
      -service.protocol='http' 
      -serviceName='Happy Service' 
      -proxy.port=:31900 
      -admin.port=:8881 
      -http.port=:8888 
      -rootUrl='localhost:8888'

As you can see, you should only provide the sever and port in the configuration. do not provide anything after the port (path of the url).

When you curl diffy you should use diffy url and the proxy port, followed by the path that your service uses, for example http://server-ip: 31900/create_user

Good luck with your tests.

from diffy.

benjelloun23 avatar benjelloun23 commented on September 24, 2024

Thank you again but i still bloked :
This is my situation i need to see differences between two webservices:
1- 192.168.10.116 : 50752 /tempo/version
2- 192.168.10.116 : 50753 /tempo/version

Now when i run this configuration :

java -jar ./target/scala-2.11/diffy-server.jar
-candidate='http://192.168.10.116:50753/tempo/version:8080'
-master.primary='http://192.168.10.116:50752/tempo/version:8080'
-master.secondary='http://192.168.10.116:50752/tempo/version:8080'
-service.protocol='http'
-serviceName='My-Service'
-proxy.port=:31900
-admin.port=:8881
-http.port=:8888
-rootUrl='localhost:8888'

I have this error on server : 'java.lang.IllegalArgumentException: requirement failed: You must specify host and port' same error as last configuration.

For Curl is this correct : curl http://192.168.10.116:50752/tempo/version:31900 ?

from diffy.

camiloribeiro avatar camiloribeiro commented on September 24, 2024

Try:
java -jar ./target/scala-2.11/diffy-server.jar
-candidate='http://192.168.10.116:50753
-master.primary='http://192.168.10.116:50752
-master.secondary='http://192.168.10.116:50752
-service.protocol='http'
-serviceName='My-Service'
-proxy.port=:31900
-admin.port=:8881
-http.port=:8888
-rootUrl='localhost:8888'

And curl
curl http://localhost:31900/tempo/version

from diffy.

camiloribeiro avatar camiloribeiro commented on September 24, 2024

@benjelloun23 is it solved? Any more support?

from diffy.

benjelloun23 avatar benjelloun23 commented on September 24, 2024

Hello camiloribeiro, it's not resolved yet. I was testing configuration but I have this error on server : 'java.lang.IllegalArgumentException: requirement failed: You must specify host and port'

And for curl error : Empty reply from server

from diffy.

camiloribeiro avatar camiloribeiro commented on September 24, 2024

sorry, just realize now that you are adding http also (not a problem, but better don't) and that I missed to add the quotes at the end.

Try again:
java -jar ./target/scala-2.11/diffy-server.jar
-candidate='192.168.10.116:50753'
-master.primary='192.168.10.116:50752'
-master.secondary='192.168.10.116:50752'
-service.protocol='http'
-serviceName='My-Service'
-proxy.port=:31900
-admin.port=:8881
-http.port=:8888
-rootUrl='localhost:8888'

And curl
curl http://localhost:31900/tempo/version

"Empty reply from server" is fine.

from diffy.

benjelloun23 avatar benjelloun23 commented on September 24, 2024

I already test it with quotes dont worry about that but still not working.
When i copy the url : 192.168.10.116:50753/tempo/version on my browser i have some xml text.
same as this url 192.168.10.116:50752/tempo/version.
and if i do url : 192.168.10.116:50752 or 192.168.10.116/tempo/version i have error 404 on browser. so the urls working are :
1- 192.168.10.116:50753/tempo/version
2- 192.168.10.116:50752/tempo/version

from diffy.

benjelloun23 avatar benjelloun23 commented on September 24, 2024

Hello again,
It's still not working.
Is this have relation with Cygwin (Unix Emulator) ?

from diffy.

camiloribeiro avatar camiloribeiro commented on September 24, 2024

I have no idea if it has anything to do with the windows linux emulator, but I would use a proper linux installation or virtual machine to try it out.

I would also try using a different app. I am 100% sure there is no problems with the current version, since I ran it recently in linux and mac and we also have provided a docker image that runs it as well. If you want to run it from your windows you can also try the docker under the example folder.

I am sorry, but I am running out of ideas for your problem. Maybe someone from the diffy team could help you better: @puneetkhanduri ? Ideas?

from diffy.

benjelloun23 avatar benjelloun23 commented on September 24, 2024

It's not working with docker terminal either.

  • java.lang.IllegalArgumentException: requirement failed: You must specify host an d port
  • curl http://localhost:31900/tempo/version
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (52) Empty reply from server
    Then on my browser show just the diffy webapp with no differences in adresse : localhost:8888

from diffy.

sukalpomitra avatar sukalpomitra commented on September 24, 2024

Hi I may be late and you may have already resolved it but I guess the example given by @camiloribeiro missed the trailing slashes

java -jar ./target/scala-2.11/diffy-server.jar
-candidate='192.168.10.116:50753'
-master.primary='192.168.10.116:50752'
-master.secondary='192.168.10.116:50752'
-service.protocol='http'
-serviceName='My-Service'
-proxy.port=:31900
-admin.port=:8881
-http.port=:8888
-rootUrl='localhost:8888'

Also as suggested by @camiloribeiro the empty response is as expected. You should look the repsonse from diffy at localhost:8888

Hope this helps

from diffy.

camiloribeiro avatar camiloribeiro commented on September 24, 2024

@benjelloun23 Can we close this issue? Thanks.

from diffy.

benjelloun23 avatar benjelloun23 commented on September 24, 2024

Yeh we can
Le 28 juin 2016 20:06, "Camilo Ribeiro" [email protected] a écrit :

@benjelloun23 https://github.com/benjelloun23 Can we close this issue?
Thanks.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#25 (comment), or mute
the thread
https://github.com/notifications/unsubscribe/AHGJTC6TtICliBu0Yzef_pM1NhjOcF60ks5qQWKZgaJpZM4GNGUJ
.

from diffy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.