-
Notifications
You must be signed in to change notification settings - Fork 10
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
MasheryTool #11
Comments
Newer versions of |
Thanks Rkiesler, for quick response Now I am using new scripts for mashery tool but while installing, we are getting below error:- Regards, |
You can ignore this error. It should not affect the build.
FWIW, just want to make sure you are aware that Mashery now has Swagger
support built-in, and this tool is really no longer needed.
…On Wed, Jul 25, 2018, 11:02 PM Dikshantbhargava ***@***.***> wrote:
Thanks Rkiesler,
For quick response, now I am using new scripts for mashery tool but when
giving npm install getting below error:-
400 Bad Request - POST https://registry.npmjs.org/-/npm/v1/security/audits
.
I am using npm version 6.1.0 and node version 6.14.3
Please find the attached screenshot for error...
Regards
Dikshant
BadRequest.docx
<https://github.com/mashery/masherytools/files/2230611/BadRequest.docx>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#11 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHYU3-qfcxzklNNtHsfphnU01Oo7Tcicks5uKVtkgaJpZM4VcKX3>
.
|
Masheryinitis not Function.docx We want to do automation where API defination is created in saas mashery by uploading the swagger file or WSDL file. So we are trying to use this mashery tool to achieve the same. It would be great if you can suggest any other tool for same purpose. Yes it is working after ignoring the error. Thanks for that! But after uloading the swagger/WSDL file in the UI, the attached error message is being displayed (Mashery init is not a function) |
Swagger import is available in the Mashery REST API. See
https://support.mashery.com/docs/read/mashery_api/30/Transform_API
…On Thu, Jul 26, 2018, 12:51 AM Dikshantbhargava ***@***.***> wrote:
We want to do an automation where API definition is created in saas
mashery by uploading the swagger file or WSDL file. So, we are trying to
use this Mashery tool to achieve the same. It would be great if you can
suggest any other tool for the same purpose.
Yes it is working after ignoring the error. Thanks for that! But after
uploading the swagger/WSDL file in the UI, the attached error message is
being displayed (Mashery init is not a function).
It would be very helpful if you suggest something on this.
Masheryinitis not Function.docx
<https://github.com/mashery/masherytools/files/2230949/Masheryinitis.not.Function.docx>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#11 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHYU3-WS1B6kftlAFgUS7y4AxRun0gkwks5uKXT-gaJpZM4VcKX3>
.
|
Yes for swagger import I have created the masheryApi and IO Docs for REST API. But we are trying to use this mashery tool to move all the api defination from SIT Env to UAT Env by uploading in bulk.(OR we can create API via WSDL also). |
For this you can export API and endpoint definitions from one instance and
import to another. See the Copy API tool as an example.
Please note that I am no longer a TIBCO employee, and only maintain this
code as a courtesy. I highly recommend that you consult with TIBCO
professional services to help you do what you want.
…On Fri, Jul 27, 2018, 12:36 AM Dikshantbhargava ***@***.***> wrote:
Yes for swagger import I have created the masheryApi and IO Docs for REST
API.
But we are trying to use this mashery tool to move all the api defination
from SIT Env to UAT Env by uploading in bulk.(OR we can create API via WSDL
also).
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#11 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHYU33fCbC7IYKW2JA37BL6s62MtRzbIks5uKsMSgaJpZM4VcKX3>
.
|
Hi, For Copy API tool, I followed all the steps and at the end when I load services from source Area, it is loading all the APIs of my Area but I am unable to type Destination Area as it is showing same as Source area. Then how it will be copy from source area to destination area if we are unable to put destination area name in tool. Can you please help? |
You need to specify at least two areas in your mashery_area_uuids=[
{
name: 'my_source_area.mashery.com',
uuid: 'my_source_area_uuid',
tm_host: 'src_area_name.api.mashery.com',
cc_url: 'https://myareaname.admin.mashery.com/control-center'
},
{
name: 'my_target_area.mashery.com',
uuid: 'my_target_area_uuid',
tm_host: 'tgt_area_name.api.mashery.com',
cc_url: 'https://myareaname.admin.mashery.com/control-center'
}
]; |
Thanks for a very quick response. I am amazed with this. Let me try this and I will share you the result . |
I created one trail account in Mashery to test this tool. I tried to copy APIs from my project Area to Mashery Trial account Area. After your suggestion of including two areas (one my project area and one Mashery Trial account area) in my credentials.js, I started Copy APi tool but this time it is not loading service of trail account. My question is whether this tool work on trial account ? |
The tool should work on any Mashery account, assuming you have the proper permissions. Are you seeing any specific errors? Try using the developer tools in your browser to see what info/errors the API calls return. |
This appears to be a permissions issue with the OAuth token. It's possible that the trial area isn't authorized for the Mashery V3 API. Mashery Support should be able to assist you there. Do you see any other errors in the browser's developer tools (network tab)? |
Sorry but I think I am not getting your query about developer tool. What is this browser's developer tools (network tab)? How to use or check this? |
These are just HTML related - filter by XHR requests to see if there are
any API calls failing.
…On Tue, Jul 27, 2021, 10:19 AM saurabh12n ***@***.***> wrote:
yes , I can see errors there .
[image: image]
<https://user-images.githubusercontent.com/50313369/127198935-ab14bf20-dd63-4919-9626-0ab863649df3.png>
[image: image]
<https://user-images.githubusercontent.com/50313369/127198991-2a5cdb61-02c7-476e-915b-d66c6e55641f.png>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#11 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB3BJX53NXYLYCJPKRNQAALTZ3TDZANCNFSM4FLQUX3Q>
.
|
Ok, I recommend you contact Mashery Support to verify the trial area is
enabled for the V3 API. Unfortunately, I no longer work for TIBCO and have
no access to the API or any areas, so the code in this repo will not be
updated anymore.
…On Tue, Jul 27, 2021, 6:38 PM saurabh12n ***@***.***> wrote:
No, there are no errors by selecting XHR.
[image: image]
<https://user-images.githubusercontent.com/50313369/127249687-c3bce5c4-d573-49a3-87dc-b6f4685ddb58.png>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#11 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB3BJX74O4PE7YGXNXWXOQ3TZ5NSZANCNFSM4FLQUX3Q>
.
|
I manage to get a new Area . Now there is no trial account. I put information of second area in the credentials.js file and now start the Copy File. This time I am getting error [object:Object] . When I check command prompt logs , it is showing 403 error as below : |
There is still a permission issue here, as you can see from the message
below:
{"name":"copyapi","hostname":"DESKTOP-T0DAMUT","pid":4444,"level":50,"msg":"{\n
"errorCode": 403,\n "errorMessage": "Forbidden"\n}","time":"2021-
07-28T08:20:03.255Z","v":0}
I suggest you attach a debugger to the browser and step through the
execution to see where exactly it fails.
FWIW, since Mashery has supported Swagger/OpenAPI for a while now, this
tool is really not needed anymore. You may want to explore that option too.
Good luck
…On Wed, Jul 28, 2021, 1:34 AM saurabh12n ***@***.***> wrote:
I manage to get a new Area . Now there is no trial account. I put
information of second area in the credentials.js file and now start the
Copy File. This time I am getting error [object:Object] as shown in screen
shot .
[image: image]
<https://user-images.githubusercontent.com/50313369/127290984-c5294cfd-117b-4546-9c30-953c7b1f2fdf.png>
When I check command prompt logs , it is showing 403 error as below :
C:\saurabh\SELFRIDGE\MashCli\MasheryTools\masherytools\api_definition_converter>node
bin/www
(node:4444) [DEP0066] DeprecationWarning:
OutgoingMessage.prototype._headers is deprecated
(Use node --trace-deprecation ... to show where the warning was created)
GET / 304 41.410 ms - -
GET /stylesheets/style.css 304 4.888 ms - -
GET /stylesheets/main.css 304 6.820 ms - -
GET /stylesheets/application.css 304 3.809 ms - -
GET /javascripts/jquery-1.12.0.min.js 304 9.162 ms - -
GET /copyapi 200 98.652 ms - 10705
GET /stylesheets/style.css 304 7.099 ms - -
GET /stylesheets/main.css 304 7.618 ms - -
GET /stylesheets/application.css 304 8.149 ms - -
GET /javascripts/jquery-1.12.0.min.js 304 2.180 ms - -
GET /javascripts/Markdown.Converter.js 304 2.396 ms - -
GET /javascripts/Markdown.Sanitizer.js 304 1.736 ms - -
POST /copyapi 200 3710.282 ms - 346886
GET /stylesheets/style.css 304 2.778 ms - -
GET /stylesheets/main.css 304 4.283 ms - -
GET /stylesheets/application.css 304 2.699 ms - -
GET /javascripts/jquery-1.12.0.min.js 304 3.640 ms - -
GET /javascripts/Markdown.Converter.js 304 1.676 ms - -
GET /javascripts/Markdown.Sanitizer.js 304 1.953 ms - -
{"name":"copyapi","hostname":"DESKTOP-T0DAMUT","pid":4444,"level":30,"msg":"Created
new service 'undefined' with ID
'undefined'","time":"2021-07-28T08:20:02.331Z","v":0}
{"name":"copyapi","hostname":"DESKTOP-T0DAMUT","pid":4444,"level":20,"msg":"Registering
new domain: 'undefined' is now
undefined","time":"2021-07-28T08:20:03.253Z","v":0}
{"name":"copyapi","hostname":"DESKTOP-T0DAMUT","pid":4444,"level":50,"msg":"{\n
"errorCode": 403,\n "errorMessage":
"Forbidden"\n}","time":"2021-07-28T08:20:03.255Z","v":0}
POST /copyapi 200 6579.391 ms - 10723
{"name":"copyapi","hostname":"DESKTOP-T0DAMUT","pid":4444,"level":20,"msg":"Registering
new domain: 'undefined' is now
undefined","time":"2021-07-28T08:20:03.331Z","v":0}
{"name":"copyapi","hostname":"DESKTOP-T0DAMUT","pid":4444,"level":20,"msg":"Registering
new domain: 'undefined' is now
undefined","time":"2021-07-28T08:20:03.339Z","v":0}
{"name":"copyapi","hostname":"DESKTOP-T0DAMUT","pid":4444,"level":20,"msg":"Registering
new domain: 'undefined' is now
undefined","time":"2021-07-28T08:20:03.344Z","v":0}
Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to
the client
at ServerResponse.setHeader (_http_outgoing.js:561:11)
at ServerResponse.header
(C:\saurabh\SELFRIDGE\MashCli\MasheryTools\masherytools\api_definition_converter\node_modules\express\lib\response.js:718:10)
at ServerResponse.send
(C:\saurabh\SELFRIDGE\MashCli\MasheryTools\masherytools\api_definition_converter\node_modules\express\lib\response.js:163:12)
at done
(C:\saurabh\SELFRIDGE\MashCli\MasheryTools\masherytools\api_definition_converter\node_modules\express\lib\response.js:957:10)
at
C:\saurabh\SELFRIDGE\MashCli\MasheryTools\masherytools\api_definition_converter\node_modules\hbs\lib\hbs.js:93:9
at Object.done
(C:\saurabh\SELFRIDGE\MashCli\MasheryTools\masherytools\api_definition_converter\node_modules\hbs\lib\async.js:74:20)
at
C:\saurabh\SELFRIDGE\MashCli\MasheryTools\masherytools\api_definition_converter\node_modules\hbs\lib\hbs.js:88:18
at
C:\saurabh\SELFRIDGE\MashCli\MasheryTools\masherytools\api_definition_converter\node_modules\hbs\lib\hbs.js:69:11
at Object.done
(C:\saurabh\SELFRIDGE\MashCli\MasheryTools\masherytools\api_definition_converter\node_modules\hbs\lib\async.js:74:20)
at
C:\saurabh\SELFRIDGE\MashCli\MasheryTools\masherytools\api_definition_converter\node_modules\hbs\lib\hbs.js:64:20
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#11 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB3BJX35673ETA3Z7MZQMKTTZ66K7ANCNFSM4FLQUX3Q>
.
|
Hi, Thanks for the recommendation. I am not used to with Swagger/OpenAPI and also this tool can fulfill my requirement, that is why I want to use this tool itself. Now I create a API in trail account and used trial "eval469672.api.mashery.com" as public endpoint and "ap-southeast-2.integration.cloud.tibcoapps.com" as target endpoint and then I copy API from Trail account to my project Mashery Area and this time it is successful . Now I create one dummy API in my Project Mashery Area with public "mycompany.api.mashery.com" endpoint and "ap-southeast-2.integration.cloud.tibcoapps.com" as target endpoint and then try to copy API from my project Mashery Area to my Trail account and this time it is failed with below error : {"name":"copyapi","hostname":"DESKTOP-T0DAMUT","pid":14528,"level":30,"msg":"Created new service 'undefined' with ID 'undefined'","time":"2021-07-30T11:25:27.621Z","v":0} |
As I mentioned before, this seems like a permission issue - specifically,
your account needs to be authorized to register a new domain via the API.
Contact Mashery Support for that.
…On Fri, Jul 30, 2021, 6:57 AM saurabh12n ***@***.***> wrote:
Hi,
Thanks for the recommendation. I am not used to with Swagger/OpenAPI and
also this tool can fulfill my requirement, that is why I want to use this
tool itself.
Now I create a API in trail account and used trial "
eval469672.api.mashery.com" as public endpoint and "
ap-southeast-2.integration.cloud.tibcoapps.com" and then I copy API from
Trail account to my project Mashery Area and this time it is successful .
Now I create one dummy API in my Project Mashery Area with public "
mycompany.api.mashery.com" endpoint and "
ap-southeast-2.integration.cloud.tibcoapps.com" and then try to copy API
from my project Mashery Area to my Trail account and this time it is failed
with below error :
{"name":"copyapi","hostname":"DESKTOP-T0DAMUT","pid":14528,"level":30,"msg":"Created
new service 'undefined' with ID
'undefined'","time":"2021-07-30T11:25:27.621Z","v":0}
{"name":"copyapi","hostname":"DESKTOP-T0DAMUT","pid":14528,"level":50,"msg":"{\n
"errorCode": 404,\n "errorMessage": "Not
Found"\n}","time":"2021-07-30T11:25:28.740Z","v":0}
POST /copyapi 200 6105.948 ms - 10721
{"name":"copyapi","hostname":"DESKTOP-T0DAMUT","pid":14528,"level":20,"msg":"Registering
new domain: 'undefined' is now
undefined","time":"2021-07-30T11:25:28.836Z","v":0}
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#11 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB3BJX52NXNQCA6NPOTUEQDT2KHRVANCNFSM4FLQUX3Q>
.
|
Hi rkiesler1, Now I am able to copy API from one area to other area. In one of my API, I am getting this error: {"name":"copyapi","hostname":"DESKTOP-T0DAMUT","pid":19708,"level":50,"msg":"Unable to create service definition endpoint. Property 'customRequestAuthenticationAdapter' is required if requestAuthenticationType is custom.","time":"2021-08-17T13:26:16.449Z","v":0} Can you please let me know what extra things we need to do in this case? Because we already have this property in our endpoint. |
Custom request authentication was not a supported feature in Mashery when
this code was written, so this is expected.
…On Tue, Aug 17, 2021, 6:35 AM saurabh12n ***@***.***> wrote:
Hi rkiesler1,
Now I am able to copy API from one area to other area. In one of my API, I
am getting this error:
{"name":"copyapi","hostname":"DESKTOP-T0DAMUT","pid":19708,"level":50,"msg":"Unable
to create service definition endpoint. Property
'customRequestAuthenticationAdapter' is required if
requestAuthenticationType is
custom.","time":"2021-08-17T13:26:16.449Z","v":0}
Can you please let me know what extra things we need to do in this case?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#11 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB3BJX5FL762R7JL374GZLLT5JQSRANCNFSM4FLQUX3Q>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>
.
|
Hi,
2)Can't set headers after they are sent.
Could you please help on to resolve this error.
Thanks & regards
Dikshant
Masheryinitis not Function.docx
[CantSetheader.docx](https://github.com/mashery/masherytools/files/2222249/CantSetheader.docx
Masheryinitis not Function.docx
)
The text was updated successfully, but these errors were encountered: