How to prevent URI Mismatch error when sending email using Gmail - google-cloud-platform

I have looked at just about every page on the web searching for an answer to this question. I am trying to programmatically send an email message using Gmail. I am writing the web application using C# with Visual Studio 2022. Here is a screen print of the error I am receiving:
From various pages around the web, the issue is that the "Authorized JavaScript Origins" URI and the "Authorized Redirect URIs" are incorrect on the Google Developers Console. Note that the port number on the error message:
http//127.0.0.1:**50711**/authorize
It changes every time I run the application (which tries to send an email message). In previous editions of Visual Studio, you could set this port number on the properties page of the project. In the properties page of my project (Properties | debug | general | open debug launch profiles UI), there are several URIs which I have tried to no avail. But I admit that I do not fully understand how web servers work.
So I am really asking two questions:
How do I resolve the error from Google Developers Console and where can I learn more about how servers work?
Thank you for your assistance.

Related

How can React Native be used to interface with an Amazon Connect Contact Control Panel (CCP)?

Since I couldn't find the answer after hours of searching, my first attempt was to load a WebView in React Native and point it to a custom CCP page hosted on my own server using Amazon Connect Streams. This is the method which seems well documented, but it is intended for desktops. It works great in Firefox on desktop and mobile (Android). When I try it in Chrome or the React Native WebView, it fails.
Developer tools on the desktop version of Chrome gives this error: Refused to display '<URL>' in a frame because it set 'X-Frame-Options' to 'sameorigin'. Obviously, I don't have control over Amazon's X-Frame-Options but I don't think that's really the main problem. The other error shown in the console is: amazon-connect.js:204 [2020-07-14T22:12:32.258Z] [WARN]: ACK_TIMEOUT occurred, attempting to pop the login page if not already open. WARN # amazon-connect.js:204 amazon-connect.js:205 [2020-07-14T22:12:32.262Z] [ERROR]: ACK_TIMEOUT occurred but we are unable to open the login popup. I don't know what to do about this one.
I've also looked at the AWS.Connect API documentation, but it only seems to allow the customer side of a connection.
Has this been done before? If so, could someone give the broad strokes of it? I want to create an app which can connect to the Amazon CCP and maintain the connection so the agent can get an alert as soon as a chat attempt comes in.
Alternative solutions would be appreciated as well.
Update: There is a library from Amazon called amazon-connect-chatjs which looks promising, but I'm not sure if it will allow for the agent side of the chat session. I'm reading about it now.

Authentication Error when Trying to Log into WSO2 IoT Server - Device Management Console in wso2-iot-3.3.0

I followed the instructions in the link (https://docs.wso2.com/display/IOTS330/Enterprise+IoT+solution) in Windows to start WSO2 IoT server. So, broker, iot-server and analytics are started. But, when I'm trying to log in to the device management console using admin login or the login credentials I created, it gives me an authentication error.
I tried the solutions in this answer (Not able to access WSO2 IoTS Device Management Console in wso2-iot-3.3.0 when logged in 'admin') also (Reducing Java version to 1.8.0_144 and making the compression parameter to off in all the catalina-server.xml files). But any of it didn't work for me.
I have attached the screen shots of the error. Please help me to go through this! Thank you.
Error in browser
Error description in iot-server console-Part 1
Error description in iot-server console-Part 2
This is related to the issue mentioned in the github issue mentioned below and it seems, it is already fixed in latest master.
As a quick workaround you could try to modify the startup script files (bat files in this case) and add the changes mentioned in the above git issue.
For example, you can change the file modules/distribution/src/core/bin/iot-server.bat at line number 73 as below.
FOR %%D in ("%CARBON_HOME%\wso2\lib\commons-lang*.jar") DO set CARBON_CLASSPATH=!CARBON_CLASSPATH!;".\wso2\lib\%%~nD%%~xD"
Similarly do the same change as above for files mentioned below as well.
modules/distribution/src/core/resources/profiles/backend/iot-server.bat
modules/distribution/src/core/resources/profiles/keymanager/iot-server.bat
modules/distribution/src/core/resources/profiles/manager/iot-server.bat
This should resolve the issues you are facing.
Related github issue - https://github.com/wso2/product-iots/pull/1838/files

Can not update web reference in Visual Studio 2013

My project in Visual studio 2013 consumes Acumatica web service APIs on another server. I had no problem with adding web reference and calling Acumatica web service API in my code, until recently I added new API into the web service in Acumatica, and then tried to update web service reference in my project. I right clicked on "web service" in Visual studio and then click on "update web reference" to update, however, I was still getting the old APIs, even though I used exactly same URL. I put the URL in browser and I could see the new APIs but when I tried to update, I just couldn't get them into Visual Studio.
When I put that URL into browser to view the WSDL XML, I noticed I only got new APIs after I logged into Acumatica and I was getting old APIs before I logged in. It seems Acumatica only sends updated WSDL xml after users log in, which causes problem to Visual Studio, since there is no way to log in first in Visual studio.
Actually I had successfully updated my web reference before, but almost every time I tried to update reference, I got this problem, then after keeping trying many times, the reference eventually got updated...but this time, the problem seems to just hang on there and doesn't go...
By the way, I tried to go to command line to use wsdl.exe to generate reference class but still got old APIs.
I just don't understand why Acumatica requires logging in to give out new APIs...
If anybody could give me any clue to solve this problem, that would be really appreciated.
(Converting my solution from a comment to an answer)
I believe the Visual Studio GUI frontend for wsdl.exe does allow you to perform a login action (by showing a WebBrowser control) prior to downloading the .wsdl file, but in the event that doesn't work you can always manually download the .wsdl via your desktop browser and then invoke wsdl.exe from the command-line, providing the downloaded file as a command-line argument.

Sharepoint 2013 CMIS Workbench Login Fails with "One or more of the input parameters to the service method is missing or invalid"

Sharepoint 2013 CMIS Workbench Login Fails with "One or more of the input parameters to the service method is missing or invalid"
I have an install of Sharepoint 2013 and in the site settings I have enabled "Content Management Interoperability Services (CMIS) Producer". I am using CMIS Workbench 0.9.0 (the latest at this time) to connect to the Sharepoint 2013 CMIS service.
I am logging in with this URL:
http://machinip:35382/cmis/_vti_bin/cmis/rest?getRepositories
When I click "Load Repositories" and I get a selection of 2 repositories to choose from: 1. "Administrative Report Library" 2. "Shared Document". Regardless of which repository I pick, I get the following error: InvalidArgument: One or more of the input parameters to the serivce method is missing or invalid.
I have tried using the machine name instead of the IP address, and I receive the same error.
I also have an "Internal" url setup with the machine name and port as "default":
"http://machinename:35382"
I have authentication setup as "Basic". I'll admit that I am not a Sharepoint expert. I have also tried running workbench directly on the machine hosting SharePoint 2013 and still receive the same error. I have also tried adding the machine name to the hosts file on the client running Workbench but that did not fix the problem.
I am able to connect to the InMemory server. I have also successfully connected to a different machine running SharePoint 2010.
Can someone help with this issue? Are there other settings that need to be setup to make this work?
I found this issue that says an alternate mapping needs to be setup, but I believe I have one setup correctly already using the machine name.
Login error to Sharepoint 2013 repository using openCMIS Workbench
I have found this link and I am not sure if it applies. If it does, how can I get around this issue? If this is the problem, I would not be able to utilize the solution.
https://issues.apache.org/jira/browse/CMIS-294
I receive the same error when I tried to connect to Sharepoint 2013 with my own application that works OK with the InMemory and SharePoint 2010 servers.
Here is the log from CMIS Workbench:
11:19:04 ERROR hemistry.opencmis.workbench.ClientHelper: CmisInvalidArgumentException: One or more of the input parameters to the service method is missing or invalid.
org.apache.chemistry.opencmis.commons.exceptions.CmisInvalidArgumentException: One or more of the input parameters to the service method is missing or invalid.
at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.convertStatusCode(AbstractAtomPubService.java:423)
at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.read(AbstractAtomPubService.java:554)
at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.getTypeDefinitionInternal(AbstractAtomPubService.java:821)
at org.apache.chemistry.opencmis.client.bindings.spi.atompub.RepositoryServiceImpl.getTypeDefinition(RepositoryServiceImpl.java:88)
at org.apache.chemistry.opencmis.client.bindings.impl.RepositoryServiceImpl.getTypeDefinition(RepositoryServiceImpl.java:137)
at org.apache.chemistry.opencmis.client.runtime.SessionImpl.getTypeDefinition(SessionImpl.java:518)
at org.apache.chemistry.opencmis.workbench.model.ClientSession.createOperationContexts(ClientSession.java:244)
at org.apache.chemistry.opencmis.workbench.model.ClientSession.createSession(ClientSession.java:195)
at org.apache.chemistry.opencmis.workbench.LoginDialog$2.actionPerformed(LoginDialog.java:204)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2006)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2329)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:398)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:253)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:247)
11:19:04 ERROR hemistry.opencmis.workbench.ClientHelper: Error code: 0
I was getting the same error as you. Double check your Alternate Access Mapping Settings:
Go to the Central Administration page
Under System Settings, click Configure Alternate Access Mappings
There should be at least two urls. One with server short name and one with server full name.
If the url is missing, click Add Internal Urls
For the Alternate Access Mapping Collection, click the No Selection link, change and select:
SharePoint - 80
Set the url such as http://myserver.abc.xyz.com
Set Zone: any such as Intranet
Click Save
(Note: I had posted the question that you had referenced and only finally had the time to get back to it)

TFS 2010 - Unable to create Team Project

I had created a Team Project Collection and added a team project on TFS 2010 which was a created on a VMWare space. Of late my system administrator copied the image of the server and recreated it on to a new VMWare server due to space shortage.
Not sure if the given issue is occuring due to that but post the movement I am getting this error when trying to create a Team Project on TFS 2010
Error TF24023:
Team Foundation Server Configuration Failure. The New
Team Project Wizard work item component could not connect to the Team
Foundation Server \
Explanation
Contact the administrator for the Team Foundation Server
\ to confirm that the
server is available on the network. Also, you might find additional
helpful information in the project creation log. The log shows each
action taken by the wizard at the time of the failure and may include
additional details about the error.
User Action
The Project Creation Wizard was not able to connect to
the Team Foundation Server \. The reason for the failed connection cannot be
determined at this time.
The server is accessible and am able to work with my earlier created Team Project, but not able to create a new one as it tries to look at the servername\projectcollectionname instance as the server name. Can someone help to resolve this.
Tried searching the error number and the log related solutions and other forums but could not get any specifics related to my issue.
What is in the log files? Do you have SharePoint or SSRS configured? And are those configurations still valid?